Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
[SELC-5093] chore: add support-pnpg tag to getInstitutions (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
giulia-tremolada authored Jun 14, 2024
1 parent b09a0d5 commit c8d6ce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@
},
"/institutions" : {
"get" : {
"tags" : [ "Institution", "external-v2", "support" ],
"tags" : [ "Institution", "external-v2", "support", "support-pnpg" ],
"summary" : "Gets institutions filtering by taxCode and/or subunitCode",
"description" : "Gets institutions filtering by taxCode and/or subunitCode",
"operationId" : "getInstitutionsUsingGET",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;

@RestController
@RequestMapping(value = "/institutions", produces = MediaType.APPLICATION_JSON_VALUE)
Expand Down Expand Up @@ -72,7 +71,10 @@ public InstitutionController(InstitutionService institutionService,
* * Code: 400, Message: Bad Request, DataType: Problem
* * Code: 404, Message: Products not found, DataType: Problem
*/
@Tags({@Tag(name = "support"), @Tag(name = "external-v2"), @Tag(name = "Institution")})
@Tag(name = "support")
@Tag(name = "support-pnpg")
@Tag(name = "external-v2")
@Tag(name = "Institution")
@ResponseStatus(HttpStatus.OK)
@ApiOperation(value = "${swagger.mscore.institutions}", notes = "${swagger.mscore.institutions}")
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
Expand All @@ -96,7 +98,7 @@ public ResponseEntity<InstitutionsResponse> getInstitutions(@ApiParam("${swagger
InstitutionsResponse institutionsResponse = new InstitutionsResponse();
institutionsResponse.setInstitutions(institutions.stream()
.map(institutionResourceMapper::toInstitutionResponse)
.collect(Collectors.toList()));
.toList());
return ResponseEntity.ok(institutionsResponse);
}

Expand Down Expand Up @@ -422,7 +424,7 @@ public ResponseEntity<OnboardingsResponse> getOnboardingsInstitution(@ApiParam("
OnboardingsResponse onboardingsResponse = new OnboardingsResponse();
onboardingsResponse.setOnboardings(onboardings.stream()
.map(onboardingResourceMapper::toResponse)
.collect(Collectors.toList()));
.toList());
return ResponseEntity.ok().body(onboardingsResponse);
}

Expand Down Expand Up @@ -494,7 +496,7 @@ public ResponseEntity<InstitutionOnboardingListResponse> findFromProduct(@ApiPar
InstitutionOnboardingListResponse institutionListResponse = new InstitutionOnboardingListResponse(
institutions.stream()
.map(InstitutionMapperCustom::toInstitutionOnboardingResponse)
.collect(Collectors.toList()));
.toList());

log.trace("findFromProduct end");
return ResponseEntity.ok().body(institutionListResponse);
Expand Down

0 comments on commit c8d6ce5

Please sign in to comment.