rename endpoints

This commit is contained in:
Anatoly Karlov 2024-11-03 00:36:48 +07:00
parent b23f891d8d
commit 20c37f7430
7 changed files with 11 additions and 11 deletions

View File

@ -42,7 +42,7 @@ public class ProviderPaymentsCallbackHandler implements ProviderPaymentsCallback
@Override
@Transactional
public void createAdjustmentWhenFailedPaymentSuccess(ProviderPaymentsCallbackParams providerPaymentsCallbackParams) throws TException {
log.info("disputeCallbackParams {}", providerPaymentsCallbackParams);
log.info("providerPaymentsCallbackParams {}", providerPaymentsCallbackParams);
if (!enabled) {
return;
}

View File

@ -23,9 +23,9 @@ public class NetworkConfig {
private String restEndpoint;
public static final String HEALTH = "/actuator/health";
public static final String MERCHANT = "/disputes-api/v1/merchant";
public static final String ADMIN_MANAGEMENT = "/disputes-api/v1/admin-management";
public static final String CALLBACK = "/disputes-api/v1/callback";
public static final String MERCHANT = "/v1/merchant";
public static final String ADMIN_MANAGEMENT = "/v1/admin-management";
public static final String CALLBACK = "/v1/callback";
@Bean
public FilterRegistrationBean externalPortRestrictingFilter() {
@ -91,4 +91,4 @@ public class NetworkConfig {
filterRegistrationBean.addUrlPatterns(restEndpoint + "*");
return filterRegistrationBean;
}
}
}

View File

@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import java.io.IOException;
@WebServlet("/disputes-api/v1/admin-management")
@WebServlet("/v1/admin-management")
public class AdminManagementServlet extends GenericServlet {
@Autowired

View File

@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import java.io.IOException;
@WebServlet("/disputes-api/v1/merchant")
@WebServlet("/v1/merchant")
public class MerchantServlet extends GenericServlet {
@Autowired

View File

@ -8,8 +8,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import java.io.IOException;
@WebServlet("/disputes-api/v1/callback")
public class ProviderDisputesCallbackServlet extends GenericServlet {
@WebServlet("/v1/callback")
public class ProviderPaymentsCallbackServlet extends GenericServlet {
@Autowired
private ProviderPaymentsCallbackServiceSrv.Iface providerPaymentsCallbackHandler;

View File

@ -26,7 +26,7 @@ import java.util.List;
@RestController
@RequiredArgsConstructor
@RequestMapping({"/debug/disputes-api/admin-management"})
@RequestMapping({"/debug/v1/admin-management"})
@Slf4j
public class DebugAdminManagementController {

View File

@ -88,7 +88,7 @@ public class MockUtil {
}
public static CompletableFuture<ProxyDefinition> createProxyNotFoundCase(Integer port) {
return createProxy("http://127.0.0.1:" + port + "/debug/disputes-api/admin-management");
return createProxy("http://127.0.0.1:" + port + "/debug/v1/admin-management");
}
public static CompletableFuture<ProxyDefinition> createProxyWithRealAddress(Integer port) {