diff --git a/src/main/java/co/novu/api/integrations/IntegrationsApi.java b/src/main/java/co/novu/api/integrations/IntegrationsApi.java index c5147d2..a32db7d 100644 --- a/src/main/java/co/novu/api/integrations/IntegrationsApi.java +++ b/src/main/java/co/novu/api/integrations/IntegrationsApi.java @@ -16,10 +16,10 @@ public interface IntegrationsApi { String ENDPOINT = "integrations"; - @GET(ENDPOINT + "/get-integrations") + @GET(ENDPOINT) Call getIntegrations(); - @POST(ENDPOINT + "/create-integrations") + @POST(ENDPOINT) Call createIntegration(@Body IntegrationRequest request); @GET(ENDPOINT + "/active") diff --git a/src/test/java/co/novu/api/integrations/IntegrationsHandlerTest.java b/src/test/java/co/novu/api/integrations/IntegrationsHandlerTest.java index facaf19..b562d2c 100644 --- a/src/test/java/co/novu/api/integrations/IntegrationsHandlerTest.java +++ b/src/test/java/co/novu/api/integrations/IntegrationsHandlerTest.java @@ -46,7 +46,7 @@ public void test_getIntegrations() throws NovuNetworkException, IOException, Int BulkIntegrationResponse response = integrationsHandler.getIntegrations(); RecordedRequest request = mockWebServer.takeRequest(); - assertEquals("/integrations/get-integrations", request.getPath()); + assertEquals("/integrations", request.getPath()); assertEquals("GET", request.getMethod()); assertEquals(gson.toJson(bulkIntegrationResponse), gson.toJson(response)); } @@ -69,7 +69,7 @@ public void test_createIntegration() throws NovuNetworkException, IOException, I SingleIntegrationResponse response = integrationsHandler.createIntegration(integrationRequest); RecordedRequest request = mockWebServer.takeRequest(); - assertEquals("/integrations/create-integrations", request.getPath()); + assertEquals("/integrations", request.getPath()); assertEquals("POST", request.getMethod()); assertEquals(gson.toJson(singleIntegrationResponse), gson.toJson(response)); }