From 4e1a31d82145faaf95e4e8f510a02227f50003cf Mon Sep 17 00:00:00 2001 From: Issel Parra <14161286+isselparra@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:35:53 +0200 Subject: [PATCH] [backend/frontend] replace /api/atomic_testings with /api/atomic-testings --- .../java/io/openbas/rest/atomic_testing/AtomicTestingApi.java | 2 +- .../src/test/java/io/openbas/rest/AtomicTestingApiTest.java | 2 +- .../src/actions/atomic_testings/atomic-testing-actions.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openbas-api/src/main/java/io/openbas/rest/atomic_testing/AtomicTestingApi.java b/openbas-api/src/main/java/io/openbas/rest/atomic_testing/AtomicTestingApi.java index 7a4aebf273..f650601e82 100644 --- a/openbas-api/src/main/java/io/openbas/rest/atomic_testing/AtomicTestingApi.java +++ b/openbas-api/src/main/java/io/openbas/rest/atomic_testing/AtomicTestingApi.java @@ -21,7 +21,7 @@ import java.util.List; @RestController -@RequestMapping("/api/atomic_testings") +@RequestMapping("/api/atomic-testings") @PreAuthorize("isAdmin()") @RequiredArgsConstructor public class AtomicTestingApi extends RestBehavior { diff --git a/openbas-api/src/test/java/io/openbas/rest/AtomicTestingApiTest.java b/openbas-api/src/test/java/io/openbas/rest/AtomicTestingApiTest.java index 192365a19d..62355ae20c 100644 --- a/openbas-api/src/test/java/io/openbas/rest/AtomicTestingApiTest.java +++ b/openbas-api/src/test/java/io/openbas/rest/AtomicTestingApiTest.java @@ -26,7 +26,7 @@ @TestMethodOrder(MethodOrderer.OrderAnnotation.class) public class AtomicTestingApiTest extends IntegrationTest { - public static final String ATOMIC_TESTINGS_URI = "/api/atomic_testings"; + public static final String ATOMIC_TESTINGS_URI = "/api/atomic-testings"; static Inject INJECT_WITH_PAYLOAD; static Inject INJECT_WITHOUT_PAYLOAD; diff --git a/openbas-front/src/actions/atomic_testings/atomic-testing-actions.ts b/openbas-front/src/actions/atomic_testings/atomic-testing-actions.ts index 40f6e34d5f..65380832bf 100644 --- a/openbas-front/src/actions/atomic_testings/atomic-testing-actions.ts +++ b/openbas-front/src/actions/atomic_testings/atomic-testing-actions.ts @@ -1,7 +1,7 @@ import { simpleCall, simpleDelCall, simplePostCall, simplePutCall } from '../../utils/Action'; import type { AtomicTestingInput, SearchPaginationInput } from '../../utils/api-types'; -const ATOMIC_TESTING_URI = '/api/atomic_testings'; +const ATOMIC_TESTING_URI = '/api/atomic-testings'; export const searchAtomicTestings = (searchPaginationInput: SearchPaginationInput) => { const data = searchPaginationInput;