Skip to content

Commit

Permalink
fix: openapi fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenke committed Apr 9, 2024
1 parent 34ed97a commit 762f042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/openapi/openapi-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -292,7 +292,7 @@ paths:
$ref: '#/components/schemas/CreateProductAssignmentsRequest'
responses:
201:
description: New assignment created
description: New assignments created
400:
description: Bad request
content:
Expand Down

0 comments on commit 762f042

Please sign in to comment.