Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VAS-912] fix: Retrieve segregation code API #46

Merged
merged 17 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopa-api-config-selfcare-integration
description: Microservice that manages requests from selfcare
type: application
version: 1.82.0
appVersion: 1.10.10
version: 1.84.0
appVersion: 1.10.10-2-VAS-912-fix-segregation-code
dependencies:
- name: microservice-chart
version: 2.8.0
Expand Down
2 changes: 1 addition & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.10.10"
tag: "1.10.10-2-VAS-912-fix-segregation-code"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.10.10"
tag: "1.10.10-2-VAS-912-fix-segregation-code"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.10.10"
tag: "1.10.10-2-VAS-912-fix-segregation-code"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
262 changes: 214 additions & 48 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@
"title": "API-Config - SelfCare Integration",
"description": "Spring application exposes APIs for SelfCare",
"termsOfService": "https://www.pagopa.gov.it/",
"version": "1.10.10"
"version": "1.10.10-2-VAS-912-fix-segregation-code"
},
"servers": [
{
"url": "http://localhost",
"description": "Generated server url"
"url": "http://localhost:8080"
},
{
"url": "https://{host}{basePath}",
"variables": {
"host": {
"default": "api.dev.platform.pagopa.it",
"enum": [
"api.dev.platform.pagopa.it",
"api.uat.platform.pagopa.it",
"api.platform.pagopa.it"
]
},
"basePath": {
"default": "/apiconfig-selfcare-integration/v1/"
}
}
}
],
"tags": [
Expand Down Expand Up @@ -647,31 +662,178 @@
}
]
},
"/creditorinstitutions/{creditorInstitutionCode}/applicationcodes": {
"/creditorinstitutions/stations/{station-code}": {
"get": {
"tags": [
"Creditor Institutions"
],
"summary": "Get application code associations with creditor institution",
"operationId": "getApplicationCodesFromCreditorInstitution",
"summary": "Get the list of creditor institutions associated to a station",
"operationId": "getStationCreditorInstitutions",
"parameters": [
{
"name": "creditorInstitutionCode",
"name": "station-code",
"in": "path",
"description": "Organization fiscal code, the fiscal code of the Organization.",
"description": "Station's code",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"400": {
"description": "Bad Request",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"401": {
"description": "Unauthorized",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Forbidden",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
}
},
"404": {
"description": "Not Found",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"429": {
"description": "Too many requests",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "Service unavailable",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
}
},
"security": [
{
"name": "showUsedCodes",
"ApiKey": []
},
{
"Authorization": []
}
]
},
"parameters": [
{
"name": "X-Request-Id",
"in": "header",
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.",
"schema": {
"type": "string"
}
}
]
},
"/creditorinstitutions/{ci-tax-code}/segregationcodes": {
"get": {
"tags": [
"Creditor Institutions"
],
"summary": "Get segregation code associations with creditor institution",
"operationId": "getSegregationCodesFromCreditorInstitution",
"parameters": [
{
"name": "ci-tax-code",
"in": "path",
"description": "Creditor institution's tax code that own the station",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "targetCITaxCode",
"in": "query",
"description": "The flag that permits to show the codes already used. Default: true",
"required": false,
"description": "Tax code of the creditor institution that will be associated to the station",
"required": true,
"schema": {
"type": "boolean",
"default": true
"type": "string"
}
}
],
Expand All @@ -689,7 +851,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CIAssociatedCodeList"
"$ref": "#/components/schemas/AvailableCodes"
}
}
}
Expand Down Expand Up @@ -784,13 +946,13 @@
}
]
},
"/creditorinstitutions/{creditorInstitutionCode}/segregationcodes": {
"/creditorinstitutions/{creditorInstitutionCode}/applicationcodes": {
"get": {
"tags": [
"Creditor Institutions"
],
"summary": "Get segregation code associations with creditor institution",
"operationId": "getSegregationCodesFromCreditorInstitution",
"summary": "Get application code associations with creditor institution",
"operationId": "getApplicationCodesFromCreditorInstitution",
"parameters": [
{
"name": "creditorInstitutionCode",
Expand All @@ -810,15 +972,6 @@
"type": "boolean",
"default": true
}
},
{
"name": "service",
"in": "query",
"description": "The service endpoint, to be used as a search filter to obtain only the segregation codes used by the CI for stations using same endpoint service. Default: null",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -1664,6 +1817,28 @@
},
"components": {
"schemas": {
"ProblemJson": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status": {
"maximum": 600,
"minimum": 100,
"type": "integer",
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format": "int32",
"example": 200
},
"detail": {
"type": "string",
"description": "A human readable explanation specific to this occurrence of the problem.",
"example": "There was an error processing the request"
}
}
},
"IbanDetails": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1763,28 +1938,6 @@
}
}
},
"ProblemJson": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status": {
"maximum": 600,
"minimum": 100,
"type": "integer",
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format": "int32",
"example": 200
},
"detail": {
"type": "string",
"description": "A human readable explanation specific to this occurrence of the problem.",
"example": "There was an error processing the request"
}
}
},
"ChannelDetails": {
"required": [
"agid",
Expand Down Expand Up @@ -2354,6 +2507,19 @@
}
}
},
"AvailableCodes": {
"type": "object",
"properties": {
"availableCodes": {
"type": "array",
"description": "List of codes not used for existing associations",
"items": {
"type": "string",
"description": "List of codes not used for existing associations"
}
}
}
},
"CreditorInstitutionDetail": {
"required": [
"broker_code",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>it.gov.pagopa.api-config</groupId>
<artifactId>selfcareintegration</artifactId>
<version>1.10.10</version>
<version>1.10.10-2-VAS-912-fix-segregation-code</version>
<name>API-Config - SelfCare Integration</name>
<description>Spring application exposes APIs for SelfCare</description>

Expand Down
Loading
Loading