Skip to content

Commit

Permalink
[VAS-1113] updated openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelemella committed Jun 17, 2024
1 parent da997c7 commit 262a007
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
24 changes: 19 additions & 5 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@
"tags": [
"Creditor Institutions"
],
"summary": "Get the list of creditor institutions associated to a station",
"summary": "Get the list of creditor institutions that can be associated to a station",
"operationId": "getStationCreditorInstitutions",
"parameters": [
{
Expand All @@ -678,6 +678,20 @@
"schema": {
"type": "string"
}
},
{
"name": "ciTaxCodeList",
"in": "query",
"description": "List of Creditor Institution's tax code, restrict the research to this tax code list only",
"required": true,
"schema": {
"maxItems": 10,
"minItems": 0,
"type": "array",
"items": {
"type": "string"
}
}
}
],
"responses": {
Expand All @@ -696,7 +710,7 @@
"schema": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/CreditorInstitutionInfo"
}
}
}
Expand Down Expand Up @@ -2263,7 +2277,7 @@
"CreditorInstitutionInfo": {
"required": [
"business_name",
"creditor_institution_code"
"ci_tax_code"
],
"type": "object",
"properties": {
Expand All @@ -2272,7 +2286,7 @@
"description": "The business name of the creditor institution",
"example": "Comune di Roma"
},
"creditor_institution_code": {
"ci_tax_code": {
"type": "string",
"description": "The tax code of the creditor institution",
"example": "02438750586"
Expand Down Expand Up @@ -2734,4 +2748,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public ResponseEntity<StationDetailsList> getStationsDetailsFromCreditorInstitut
@GetMapping(value = "/stations/{station-code}", produces = {MediaType.APPLICATION_JSON_VALUE})
public ResponseEntity<List<CreditorInstitutionInfo>> getStationCreditorInstitutions(
@Parameter(description = "Station's code") @PathVariable("station-code") String stationCode,
@Parameter(description = "List of Creditor Institution's tax code") @RequestParam @Size(max = 10) List<String> ciTaxCodeList
@Parameter(description = "List of Creditor Institution's tax code, restrict the research to this tax code list only") @RequestParam @Size(max = 10) List<String> ciTaxCodeList
) {
return ResponseEntity.ok(this.creditorInstitutionsService.getStationCreditorInstitutions(stationCode, ciTaxCodeList));
}
Expand Down

0 comments on commit 262a007

Please sign in to comment.