Skip to content

Commit

Permalink
Merge pull request #325 from pagopa/PPANTT-142-get-all-maintenances
Browse files Browse the repository at this point in the history
[PPANTT-142] feat: New API getAllStationsMaintenances
  • Loading branch information
svariant authored Oct 17, 2024
2 parents 584f5f8 + cd9c9c3 commit 71a244a
Show file tree
Hide file tree
Showing 12 changed files with 452 additions and 29 deletions.
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: core
description: APIs to manage configuration for CI and PSP of pagoPA
type: application
version: 0.174.0
appVersion: 0.59.19
version: 0.175.0
appVersion: 0.59.19-1-PPANTT-142-get-all-maintenances
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 @@ -28,7 +28,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config
tag: "0.59.19"
tag: "0.59.19-1-PPANTT-142-get-all-maintenances"
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 @@ -28,7 +28,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config
tag: "0.59.19"
tag: "0.59.19-1-PPANTT-142-get-all-maintenances"
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 @@ -28,7 +28,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config
tag: "0.59.19"
tag: "0.59.19-1-PPANTT-142-get-all-maintenances"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
175 changes: 169 additions & 6 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "core",
"description": "Spring application exposes APIs to manage configuration for CI/PSP on the Nodo dei Pagamenti",
"termsOfService": "https://www.pagopa.gov.it/",
"version": "0.59.19"
"version": "0.59.19-1-PPANTT-142-get-all-maintenances"
},
"servers": [
{
Expand Down Expand Up @@ -684,6 +684,168 @@
}
]
},
"/brokers/station-maintenances": {
"get": {
"tags": [
"Creditor Institutions"
],
"summary": "Get a list of all stations' maintenance filtered by dates",
"operationId": "getAllStationsMaintenances",
"parameters": [
{
"name": "startDateTimeBefore",
"in": "query",
"description": "Start date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')",
"required": false,
"schema": {
"type": "string",
"format": "date-time"
},
"example": "2024-04-01T10:00:00.000Z"
},
{
"name": "startDateTimeAfter",
"in": "query",
"description": "Start date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')",
"required": false,
"schema": {
"type": "string",
"format": "date-time"
},
"example": "2024-04-01T10:00:00.000Z"
},
{
"name": "endDateTimeBefore",
"in": "query",
"description": "End date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')",
"required": false,
"schema": {
"type": "string",
"format": "date-time"
},
"example": "2024-04-01T13:00:00.000Z"
},
{
"name": "endDateTimeAfter",
"in": "query",
"description": "End date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')",
"required": false,
"schema": {
"type": "string",
"format": "date-time"
},
"example": "2024-04-01T13:00:00.000Z"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StationMaintenanceListResource"
}
}
}
},
"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"
}
}
}
},
"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": [
{
"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"
}
}
]
},
"/brokers/{brokercode}": {
"get": {
"tags": [
Expand Down Expand Up @@ -18718,15 +18880,15 @@
"description": "Primitive number version",
"format": "int32"
},
"flag_standin": {
"type": "boolean",
"description": "Represents the authorization to use the standin mode with this station"
},
"is_payment_options_enabled": {
"type": "boolean"
},
"rest_endpoint": {
"type": "string"
},
"flag_standin": {
"type": "boolean",
"description": "Represents the authorization to use the standin mode with this station"
}
}
},
Expand Down Expand Up @@ -19513,7 +19675,8 @@
"type": "string",
"description": "Code of the broker that owns the station"
}
}
},
"description": "List of station's maintenance"
},
"PspChannelCode": {
"required": [
Expand Down
Loading

0 comments on commit 71a244a

Please sign in to comment.