From ee6962a34f1d0b5560bd554a0a9e8f4426056e51 Mon Sep 17 00:00:00 2001 From: Oleksandr Vidinieiev Date: Mon, 13 Jan 2025 12:58:50 +0200 Subject: [PATCH] MCBFF-37 Change URL to `/circulation-bff/loans/check-in-by-barcode` --- descriptors/ModuleDescriptor-template.json | 10 ++++++---- src/main/resources/swagger.api/circulation-bff.yaml | 2 +- .../org/folio/circulationbff/api/CheckInApiTest.java | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 9eb67e9..4d145f6 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -138,15 +138,17 @@ ] }, { - "id": "circulation-bff-check-in-by-barcode", + "id": "circulation-bff-loans", "version": "1.0", "handlers": [ { "methods": [ "POST" ], - "pathPattern": "/circulation-bff/check-in-by-barcode", - "permissionsRequired": ["circulation-bff.check-in-by-barcode.execute"], + "pathPattern": "/circulation-bff/loans/check-in-by-barcode", + "permissionsRequired": [ + "circulation-bff.loans.check-in-by-barcode.execute" + ], "modulePermissions": [ "circulation.check-in-by-barcode.post" ] @@ -226,7 +228,7 @@ "description": "create ECS LTR or Circulation request" }, { - "permissionName": "circulation-bff.check-in-by-barcode.execute", + "permissionName": "circulation-bff.loans.check-in-by-barcode.execute", "displayName": "circulation BFF - check-in item", "description": "check-in item" } diff --git a/src/main/resources/swagger.api/circulation-bff.yaml b/src/main/resources/swagger.api/circulation-bff.yaml index 109b62f..edffded 100644 --- a/src/main/resources/swagger.api/circulation-bff.yaml +++ b/src/main/resources/swagger.api/circulation-bff.yaml @@ -19,7 +19,7 @@ paths: $ref: 'paths/staffSlips/searchSlips.yaml' /circulation-bff/create-ecs-request-external: $ref: 'paths/ecsRequestExternal/ecsRequestExternal.yaml' - /circulation-bff/check-in-by-barcode: + /circulation-bff/loans/check-in-by-barcode: $ref: 'paths/check-in/check-in.yaml' components: diff --git a/src/test/java/org/folio/circulationbff/api/CheckInApiTest.java b/src/test/java/org/folio/circulationbff/api/CheckInApiTest.java index 6a289d5..35141a8 100644 --- a/src/test/java/org/folio/circulationbff/api/CheckInApiTest.java +++ b/src/test/java/org/folio/circulationbff/api/CheckInApiTest.java @@ -24,7 +24,7 @@ class CheckInApiTest extends BaseIT { - private static final String CHECK_IN_URL = "/circulation-bff/check-in-by-barcode"; + private static final String CHECK_IN_URL = "/circulation-bff/loans/check-in-by-barcode"; private static final String CIRCULATION_CHECK_IN_URL = "/circulation/check-in-by-barcode"; @Test