Skip to content

Commit

Permalink
[SELC-5596] fix: fixed checkManager (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcoplutino authored Sep 19, 2024
1 parent 53a44f2 commit 9546e53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/onboarding-ms/src/main/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"/v1/onboarding/check-manager" : {
"post" : {
"tags" : [ "Onboarding Controller" ],
"summary" : "In the addition administrator flow, it checks if the new manager is equal from old one, returning true ",
"summary" : "In the addition administrator flow, it checks if the new manager is equal to the old one, returning true or false",
"requestBody" : {
"content" : {
"application/json" : {
Expand All @@ -369,7 +369,7 @@
"200" : {
"description" : "OK",
"content" : {
"text/plain" : {
"application/json" : {
"schema" : {
"type" : "boolean"
}
Expand Down
4 changes: 2 additions & 2 deletions apps/onboarding-ms/src/main/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ paths:
tags:
- Onboarding Controller
summary: "In the addition administrator flow, it checks if the new manager is\
\ equal from old one, returning true "
\ equal to the old one, returning true or false"
requestBody:
content:
application/json:
Expand All @@ -259,7 +259,7 @@ paths:
"200":
description: OK
content:
text/plain:
application/json:
schema:
type: boolean
"401":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,10 @@ public Uni<Response> update(@PathParam(value = "onboardingId") String onboarding
}

@Operation(summary = "In the addition administrator flow, it checks " +
"if the new manager is equal from old one, returning true ")
"if the new manager is equal to the old one, returning true or false")
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/check-manager")
public Uni<Boolean> checkManager(OnboardingUserRequest onboardingUserRequest) {
return onboardingService.checkManager(onboardingUserRequest);
Expand Down

0 comments on commit 9546e53

Please sign in to comment.