From 41ce22fa941f964593238be4b4071d8010db0f3c Mon Sep 17 00:00:00 2001 From: Giulia Tremolada Date: Thu, 13 Jun 2024 17:19:30 +0200 Subject: [PATCH] add support-pnpg tag to getInstitutionUsers and getUserGroups --- apps/user-group-ms/app/src/main/docs/openapi.json | 2 +- .../user_group/web/controller/UserGroupV1Controller.java | 2 +- apps/user-ms/src/main/docs/openapi.json | 4 +++- apps/user-ms/src/main/docs/openapi.yaml | 2 ++ .../selfcare/user/controller/InstitutionController.java | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/user-group-ms/app/src/main/docs/openapi.json b/apps/user-group-ms/app/src/main/docs/openapi.json index 41207238..3e2d933d 100644 --- a/apps/user-group-ms/app/src/main/docs/openapi.json +++ b/apps/user-group-ms/app/src/main/docs/openapi.json @@ -768,7 +768,7 @@ }, "/v1/user-groups" : { "get" : { - "tags" : [ "UserGroup", "external-v2", "support" ], + "tags" : [ "UserGroup", "external-v2", "support", "support-pnpg" ], "summary" : "getUserGroups", "description" : "Service that allows to get a list of UserGroup entities", "operationId" : "getUserGroupsUsingGET_1", diff --git a/apps/user-group-ms/web/src/main/java/it/pagopa/selfcare/user_group/web/controller/UserGroupV1Controller.java b/apps/user-group-ms/web/src/main/java/it/pagopa/selfcare/user_group/web/controller/UserGroupV1Controller.java index c0b21d59..f26a9ee1 100644 --- a/apps/user-group-ms/web/src/main/java/it/pagopa/selfcare/user_group/web/controller/UserGroupV1Controller.java +++ b/apps/user-group-ms/web/src/main/java/it/pagopa/selfcare/user_group/web/controller/UserGroupV1Controller.java @@ -7,7 +7,6 @@ import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.tags.Tag; -import io.swagger.v3.oas.annotations.tags.Tags; import it.pagopa.selfcare.commons.web.model.Page; import it.pagopa.selfcare.commons.web.model.Problem; import it.pagopa.selfcare.commons.web.model.mapper.PageMapper; @@ -169,6 +168,7 @@ public UserGroupResource getUserGroup(@ApiParam("${swagger.user-group.model.id}" @Tag(name = "support") @Tag(name = "external-v2") @Tag(name = "UserGroup") + @Tag(name = "support-pnpg") @GetMapping() @ResponseStatus(HttpStatus.OK) @ApiOperation(value = "", notes = "${swagger.user-group.groups.api.getUserGroups}") diff --git a/apps/user-ms/src/main/docs/openapi.json b/apps/user-ms/src/main/docs/openapi.json index 54de84a9..9ae42045 100644 --- a/apps/user-ms/src/main/docs/openapi.json +++ b/apps/user-ms/src/main/docs/openapi.json @@ -19,6 +19,8 @@ "name" : "external-v2" }, { "name" : "support" + }, { + "name" : "support-pnpg" } ], "paths" : { "/authorize" : { @@ -245,7 +247,7 @@ }, "/institutions/{institutionId}/users" : { "get" : { - "tags" : [ "support", "Institution" ], + "tags" : [ "support", "support-pnpg", "Institution" ], "summary" : "The API retrieves user's info including details of roles on products", "parameters" : [ { "name" : "institutionId", diff --git a/apps/user-ms/src/main/docs/openapi.yaml b/apps/user-ms/src/main/docs/openapi.yaml index 013e7507..d74f767f 100644 --- a/apps/user-ms/src/main/docs/openapi.yaml +++ b/apps/user-ms/src/main/docs/openapi.yaml @@ -13,6 +13,7 @@ tags: - name: User - name: external-v2 - name: support +- name: support-pnpg paths: /authorize: get: @@ -171,6 +172,7 @@ paths: get: tags: - support + - support-pnpg - Institution summary: The API retrieves user's info including details of roles on products parameters: diff --git a/apps/user-ms/src/main/java/it/pagopa/selfcare/user/controller/InstitutionController.java b/apps/user-ms/src/main/java/it/pagopa/selfcare/user/controller/InstitutionController.java index 555ba320..c55bb5bb 100644 --- a/apps/user-ms/src/main/java/it/pagopa/selfcare/user/controller/InstitutionController.java +++ b/apps/user-ms/src/main/java/it/pagopa/selfcare/user/controller/InstitutionController.java @@ -32,6 +32,7 @@ public class InstitutionController { @GET @Path(value = "/{institutionId}/users") @Tag(name = "support") + @Tag(name = "support-pnpg") @Tag(name = "Institution") @Produces(MediaType.APPLICATION_JSON) public Multi getInstitutionUsers(@PathParam(value = "institutionId") String institutionId) {