Skip to content

Commit

Permalink
Merge pull request #298 from pagopa/PAGOPA-1776-upload-cbill-file
Browse files Browse the repository at this point in the history
PAGOPA-1769 add cbill code massive loading feature
  • Loading branch information
FedericoRuzzier authored May 29, 2024
2 parents abd355f + a56bc0d commit 64636a7
Show file tree
Hide file tree
Showing 10 changed files with 13,516 additions and 14,476 deletions.
27,432 changes: 13,098 additions & 14,334 deletions openapi/openapi.json

Large diffs are not rendered by default.

268 changes: 147 additions & 121 deletions openapi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7472,6 +7472,129 @@
"summary": "Create creditor institution"
}
},
"/creditorinstitutions/cbill": {
"parameters": [
{
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.",
"in": "header",
"name": "X-Request-Id",
"type": "string"
}
],
"post": {
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"parameters": [
{
"default": true,
"description": "Loading mode (true = incremental|false = full): incremental sets only PA entry with no cbill code, full replace the cbill code for all the CI in the PA table",
"in": "query",
"name": "incremental",
"required": false,
"type": "boolean"
},
{
"description": "CSV file regarding cbill codes to load",
"format": "binary",
"in": "formData",
"name": "file",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
},
"400": {
"description": "Bad Request",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ProblemJson"
}
},
"401": {
"description": "Unauthorized",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
},
"404": {
"description": "Not Found",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ProblemJson"
}
},
"429": {
"description": "Too many requests",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
},
"500": {
"description": "Service unavailable",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ProblemJson"
}
}
},
"security": [
{
"ApiKey": []
},
{
"Authorization": []
}
],
"tags": [
"Creditor Institutions"
],
"operationId": "massiveUploadCbillCsv",
"summary": "Upload a CSV file containing the cbill codes"
}
},
"/creditorinstitutions/ibans": {
"parameters": [
{
Expand Down Expand Up @@ -8939,7 +9062,7 @@
"summary": "Create creditor institution ibans"
}
},
"/creditorinstitutions/{creditorinstitutioncode}/ibans/enhanced": {
"/creditorinstitutions/{creditorinstitutioncode}/ibans/list": {
"parameters": [
{
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.",
Expand All @@ -8954,128 +9077,24 @@
],
"parameters": [
{
"description": "Organization fiscal code, the fiscal code of the Organization.",
"in": "path",
"maxLength": 50,
"minLength": 0,
"name": "creditorinstitutioncode",
"required": true,
"type": "string"
},
{
"description": "Filter by label",
"default": 50,
"description": "Number of elements on one page. Default = 50",
"format": "int32",
"in": "query",
"name": "label",
"name": "limit",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/IbansEnhanced"
}
},
"400": {
"description": "Bad Request",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ProblemJson"
}
},
"401": {
"description": "Unauthorized",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
},
"404": {
"description": "Not Found",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ProblemJson"
}
},
"429": {
"description": "Too many requests",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
}
"type": "integer"
},
"500": {
"description": "Service unavailable",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ProblemJson"
}
}
},
"security": [
{
"ApiKey": []
"default": 0,
"description": "Page number. Page value starts from 0",
"format": "int32",
"in": "query",
"minimum": 0,
"name": "page",
"required": true,
"type": "integer"
},
{
"Authorization": []
}
],
"tags": [
"Ibans"
],
"operationId": "getCreditorInstitutionsIbansEnhanced",
"summary": "Get creditor institution ibans enhanced"
}
},
"/creditorinstitutions/{creditorinstitutioncode}/ibans/list": {
"parameters": [
{
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.",
"in": "header",
"name": "X-Request-Id",
"type": "string"
}
],
"get": {
"produces": [
"application/json"
],
"parameters": [
{
"description": "The fiscal code of the Organization.",
"in": "path",
Expand Down Expand Up @@ -14476,7 +14495,7 @@
"type": "string"
},
"config_description": {
"example": " default millisecondi validità token",
"example": " default millisecondi validità token",
"type": "string"
},
"config_key": {
Expand All @@ -14498,7 +14517,7 @@
"ConfigurationKeyBase": {
"properties": {
"config_description": {
"example": " default millisecondi validità token",
"example": " default millisecondi validità token",
"type": "string"
},
"config_value": {
Expand Down Expand Up @@ -14851,6 +14870,9 @@
"maxLength": 35,
"minLength": 0,
"type": "string"
},
"station_enabled": {
"type": "boolean"
}
},
"required": [
Expand Down Expand Up @@ -15132,10 +15154,14 @@
"$ref": "#/definitions/IbanEnhanced"
},
"type": "array"
},
"page_info": {
"$ref": "#/definitions/PageInfo"
}
},
"required": [
"ibans_enhanced"
"ibans_enhanced",
"page_info"
],
"type": "object"
},
Expand Down
Loading

0 comments on commit 64636a7

Please sign in to comment.