mirror of
https://github.com/valitydev/disputes-api.git
synced 2024-11-06 00:55:23 +00:00
rename endpoints
This commit is contained in:
parent
b23f891d8d
commit
20c37f7430
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
@ -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 {
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user