Skip to content

Commit

Permalink
docs: set problem+json error response of update status (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Aug 23, 2024
1 parent c76a6ed commit 834e07a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions apps/user-ms/src/main/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
"400" : {
"description" : "Bad Request",
"content" : {
"application/json" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
Expand All @@ -841,7 +841,7 @@
"401" : {
"description" : "Not Authorized",
"content" : {
"application/json" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
Expand All @@ -851,7 +851,7 @@
"403" : {
"description" : "Forbidden",
"content" : {
"application/json" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
Expand All @@ -861,7 +861,7 @@
"404" : {
"description" : "Not Found",
"content" : {
"application/json" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
Expand Down
8 changes: 4 additions & 4 deletions apps/user-ms/src/main/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -582,25 +582,25 @@ paths:
"400":
description: Bad Request
content:
application/json:
application/problem+json:
schema:
$ref: "#/components/schemas/Problem"
"401":
description: Not Authorized
content:
application/json:
application/problem+json:
schema:
$ref: "#/components/schemas/Problem"
"403":
description: Forbidden
content:
application/json:
application/problem+json:
schema:
$ref: "#/components/schemas/Problem"
"404":
description: Not Found
content:
application/json:
application/problem+json:
schema:
$ref: "#/components/schemas/Problem"
security:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ public Uni<Void> deleteProducts(@PathParam(value = "userId") String userId,
@Operation(summary = "Update user status with optional filter for institution, product, role and productRole")
@APIResponses(value = {
@APIResponse(responseCode = "204", description = "No Content"),
@APIResponse(responseCode = "400", description = "Bad Request", content = @Content(schema = @Schema(implementation = Problem.class))),
@APIResponse(responseCode = "401", description = "Not Authorized", content = @Content(schema = @Schema(implementation = Problem.class))),
@APIResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema(implementation = Problem.class))),
@APIResponse(responseCode = "404", description = "Not Found", content = @Content(schema = @Schema(implementation = Problem.class)))
@APIResponse(responseCode = "400", description = "Bad Request", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json")),
@APIResponse(responseCode = "401", description = "Not Authorized", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json")),
@APIResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json")),
@APIResponse(responseCode = "404", description = "Not Found", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json"))
})
@PUT
@Path(value = "/{id}/status")
Expand Down

0 comments on commit 834e07a

Please sign in to comment.