From 762f04231a74705837927bc1cf0d52b10768744f Mon Sep 17 00:00:00 2001 From: Jannik Steenken Date: Tue, 9 Apr 2024 11:49:42 +0200 Subject: [PATCH] fix: openapi fix --- .../bff/rs/controllers/AssignmentRestController.java | 2 +- src/main/openapi/openapi-bff.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/tkit/onecx/permission/bff/rs/controllers/AssignmentRestController.java b/src/main/java/org/tkit/onecx/permission/bff/rs/controllers/AssignmentRestController.java index bf91cba..f4fa508 100644 --- a/src/main/java/org/tkit/onecx/permission/bff/rs/controllers/AssignmentRestController.java +++ b/src/main/java/org/tkit/onecx/permission/bff/rs/controllers/AssignmentRestController.java @@ -45,7 +45,7 @@ public Response createAssignment(CreateAssignmentRequestDTO createAssignmentRequ } @Override - public Response grantAssignment(CreateProductAssignmentsRequestDTO createProductAssignmentsRequestDTO) { + public Response grantAssignments(CreateProductAssignmentsRequestDTO createProductAssignmentsRequestDTO) { try (Response response = assignmentClient.grantAssignment(mapper.map(createProductAssignmentsRequestDTO))) { return Response.status(response.getStatus()).build(); } diff --git a/src/main/openapi/openapi-bff.yaml b/src/main/openapi/openapi-bff.yaml index 34108b5..28d60d8 100644 --- a/src/main/openapi/openapi-bff.yaml +++ b/src/main/openapi/openapi-bff.yaml @@ -282,8 +282,8 @@ paths: - write tags: - assignment - description: Create new assignments for products - operationId: grantAssignment + description: Create new assignments by criteria + operationId: grantAssignments requestBody: required: true content: @@ -292,7 +292,7 @@ paths: $ref: '#/components/schemas/CreateProductAssignmentsRequest' responses: 201: - description: New assignment created + description: New assignments created 400: description: Bad request content: