From 2b57010995baf3dd8ba7dad1bfa825587cfad144 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Thu, 31 Aug 2023 15:07:57 +0200 Subject: [PATCH] openapi --- .gitignore | 1 + openapi/generate_openapi.sh | 14 +- openapi/openapi.json | 2646 ++++++++--------- openapi/openapi_fdrv1.json | 1852 ++++++------ openapi/openapi_nodev1.json | 1816 ++++++----- openapi/openapi_verifierv1.json | 159 +- pom.xml | 11 + .../API_Config_Cache.postman_collection.json | 94 - ..._Config_Cache_Dev.postman_environment.json | 21 - .../cache.postman_collection.json | 2376 +++++++++++++++ .../apiconfig/cache/config/OpenApiConfig.java | 18 +- .../cache/controller/CacheController.java | 6 +- .../cache/service/ConfigService.java | 2 +- .../cache/OpenApiGenerationTest.java | 89 + src/test/resources/application.properties | 16 +- 15 files changed, 5485 insertions(+), 3636 deletions(-) delete mode 100644 postman-collection/API_Config_Cache.postman_collection.json delete mode 100644 postman-collection/API_Config_Cache_Dev.postman_environment.json create mode 100644 postman-collection/cache.postman_collection.json create mode 100644 src/test/java/it/gov/pagopa/apiconfig/cache/OpenApiGenerationTest.java diff --git a/.gitignore b/.gitignore index d1311a10..8e3dc698 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ helm/charts helm/Chart.lock /.identity/.terraform.lock.hcl /docker/secrets +.cache diff --git a/openapi/generate_openapi.sh b/openapi/generate_openapi.sh index 817880c3..b7cb3339 100644 --- a/openapi/generate_openapi.sh +++ b/openapi/generate_openapi.sh @@ -1,18 +1,10 @@ #!/bin/bash set -e -if ! $(curl --output /dev/null --silent --head --fail http://localhost:8080/actuator/info); then - # create containers - cd ../docker || exit - sh ./run_docker.sh "$1" "$2" - cd ../openapi || exit +if [[ "$(pwd)" =~ .*"openapi".* ]]; then + cd .. fi - -# save openapi -curl http://localhost:8080/v3/api-docs > ./openapi.json -curl http://localhost:8080/v3/api-docs/nodev1 > ./openapi_nodev1.json -curl http://localhost:8080/v3/api-docs/verifierv1 > ./openapi_verifierv1.json -curl http://localhost:8080/v3/api-docs/fdrv1 > ./openapi_fdrv1.json +mvn test -Dtest=OpenApiGenerationTest # UI mode http://localhost:8080/swagger-ui/index.html diff --git a/openapi/openapi.json b/openapi/openapi.json index 562afb85..61887912 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,1831 +1,1633 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.7.0" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.7.0" }, - "servers": [ - { - "url": "http://localhost:8080", - "description": "Generated server url" + "servers" : [ { + "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" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] + } } - ], - "paths": { - "/info": { - "get": { - "tags": [ - "Home" - ], - "summary": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "paths" : { + "/info" : { + "get" : { + "tags" : [ "Home" ], + "summary" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "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" + "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" + "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" + "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "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" - } + "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" } - ] + } ] }, - "/stakeholders/fdr/cache/schemas/v1": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get selected key of fdr v1 config", - "operationId": "cache_2", - "parameters": [ - { - "name": "keys", - "in": "query", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "creditorInstitutions", - "creditorInstitutionBrokers", - "stations", - "creditorInstitutionStations", - "encodings", - "creditorInstitutionEncodings", - "ibans", - "creditorInstitutionInformations", - "psps", - "pspBrokers", - "paymentTypes", - "pspChannelPaymentTypes", - "plugins", - "pspInformationTemplates", - "pspInformations", - "channels", - "cdsServices", - "cdsSubjects", - "cdsSubjectServices", - "cdsCategories", - "configurations", - "ftpServers", - "languages", - "gdeConfigurations", - "metadataDict" - ] - } + "/stakeholders/fdr/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache_2", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] } } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "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" + "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" + "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" + "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "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" - } + "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" } - ] + } ] }, - "/stakeholders/fdr/cache/schemas/v1/id": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get last fdr v1 cache version", - "operationId": "idV1_1", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/fdr/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1_1", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "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" + "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" + "404" : { + "description" : "Not Found", + "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" + "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" + "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "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" - } + "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" } - ] + } ] }, - "/stakeholders/node/cache/schemas/v1": { - "get": { - "tags": [ - "NodeCache" - ], - "summary": "Get full node v1 config", - "operationId": "cache_1", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/node/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache_1", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] + } + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "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" + "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" + "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" + "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "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" - } + "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" } - ] + } ] }, - "/stakeholders/node/cache/schemas/v1/id": { - "get": { - "tags": [ - "NodeCache" - ], - "summary": "Get last node v1 cache version", - "operationId": "idV1", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/node/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "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" + "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" + "404" : { + "description" : "Not Found", + "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" + "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" + "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "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" - } + "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" } - ] + } ] }, - "/stakeholders/verifier/cache/schemas/v1": { - "get": { - "tags": [ - "VerifierCache" - ], - "summary": "Get Creditor Institution list with Station v2", - "operationId": "cache", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stakeholders/verifier/cache/schemas/v1" : { + "get" : { + "tags" : [ "VerifierCache" ], + "summary" : "Get Creditor Institution list with Station v2", + "operationId" : "cache", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string" + "content" : { + "application/json" : { + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "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" + "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" + "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" + "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" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] }, - "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" - } + "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" } - ] + } ] } }, - "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" + "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" } } }, - "BrokerCreditorInstitution": { - "required": [ - "broker_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerCreditorInstitution" : { + "required" : [ "broker_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsCategory": { - "required": [ - "description" - ], - "type": "object", - "properties": { - "description": { - "type": "string" + "CdsCategory" : { + "required" : [ "description" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string" } } }, - "CdsService": { - "required": [ - "category", - "description", - "id", - "reference_xsd", - "version" - ], - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "reference_xsd": { - "type": "string" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "category": { - "type": "string" + "CdsService" : { + "required" : [ "category", "description", "id", "reference_xsd", "version" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "reference_xsd" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "category" : { + "type" : "string" } } }, - "CdsSubject": { - "required": [ - "creditor_institution_code", - "creditor_institution_description" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "creditor_institution_description": { - "type": "string" + "CdsSubject" : { + "required" : [ "creditor_institution_code", "creditor_institution_description" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "creditor_institution_description" : { + "type" : "string" } } }, - "CdsSubjectService": { - "required": [ - "fee", - "service", - "start_date", - "subject", - "subject_service_id" - ], - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "service": { - "type": "string" - }, - "subject_service_id": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" - }, - "fee": { - "type": "boolean" - }, - "station_code": { - "type": "string" - }, - "service_description": { - "type": "string" + "CdsSubjectService" : { + "required" : [ "fee", "service", "start_date", "subject", "subject_service_id" ], + "type" : "object", + "properties" : { + "subject" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "subject_service_id" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" + }, + "fee" : { + "type" : "boolean" + }, + "station_code" : { + "type" : "string" + }, + "service_description" : { + "type" : "string" } } }, - "Channel": { - "required": [ - "agid", - "broker_psp_code", - "channel_code", - "connection", - "digital_stamp", - "enabled", - "flag_io", - "flag_psp_cp", - "new_fault_code", - "password", - "payment_model", - "primitive_version", - "recovery", - "redirect", - "rt_push", - "thread_number", - "timeouts" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_nmp": { - "$ref": "#/components/schemas/Service" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "new_fault_code": { - "type": "boolean" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "payment_model": { - "type": "string" - }, - "serv_plugin": { - "type": "string" - }, - "rt_push": { - "type": "boolean" - }, - "recovery": { - "type": "boolean" - }, - "digital_stamp": { - "type": "boolean" - }, - "flag_io": { - "type": "boolean" - }, - "agid": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "flag_psp_cp": { - "type": "boolean" + "Channel" : { + "required" : [ "agid", "broker_psp_code", "channel_code", "connection", "digital_stamp", "enabled", "flag_io", "flag_psp_cp", "new_fault_code", "password", "payment_model", "primitive_version", "recovery", "redirect", "rt_push", "thread_number", "timeouts" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "password" : { + "type" : "string" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_nmp" : { + "$ref" : "#/components/schemas/Service" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "payment_model" : { + "type" : "string" + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "flag_psp_cp" : { + "type" : "boolean" } } }, - "ConfigDataV1": { - "required": [ - "cdsCategories", - "cdsServices", - "cdsSubjectServices", - "cdsSubjects", - "channels", - "configurations", - "creditorInstitutionBrokers", - "creditorInstitutionEncodings", - "creditorInstitutionInformations", - "creditorInstitutionStations", - "creditorInstitutions", - "encodings", - "ftpServers", - "gdeConfigurations", - "ibans", - "languages", - "metadataDict", - "paymentTypes", - "plugins", - "pspBrokers", - "pspChannelPaymentTypes", - "pspInformationTemplates", - "pspInformations", - "psps", - "stations", - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "ConfigDataV1" : { + "required" : [ "cdsCategories", "cdsServices", "cdsSubjectServices", "cdsSubjects", "channels", "configurations", "creditorInstitutionBrokers", "creditorInstitutionEncodings", "creditorInstitutionInformations", "creditorInstitutionStations", "creditorInstitutions", "encodings", "ftpServers", "gdeConfigurations", "ibans", "languages", "metadataDict", "paymentTypes", "plugins", "pspBrokers", "pspChannelPaymentTypes", "pspInformationTemplates", "pspInformations", "psps", "stations", "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" }, - "creditorInstitutions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitution" + "creditorInstitutions" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitution" } }, - "creditorInstitutionBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerCreditorInstitution" + "creditorInstitutionBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerCreditorInstitution" } }, - "stations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Station" + "stations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Station" } }, - "creditorInstitutionStations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/StationCreditorInstitution" + "creditorInstitutionStations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" } }, - "encodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Encoding" + "encodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Encoding" } }, - "creditorInstitutionEncodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionEncoding" + "creditorInstitutionEncodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncoding" } }, - "ibans": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Iban" + "ibans" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Iban" } }, - "creditorInstitutionInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionInformation" + "creditorInstitutionInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionInformation" } }, - "psps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "psps" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" } }, - "pspBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerPsp" + "pspBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerPsp" } }, - "paymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentType" + "paymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentType" } }, - "pspChannelPaymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspChannelPaymentType" + "pspChannelPaymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspChannelPaymentType" } }, - "plugins": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Plugin" + "plugins" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Plugin" } }, - "pspInformationTemplates": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformationTemplates" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "pspInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "channels": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Channel" + "channels" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Channel" } }, - "cdsServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsService" + "cdsServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsService" } }, - "cdsSubjects": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubject" + "cdsSubjects" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubject" } }, - "cdsSubjectServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubjectService" + "cdsSubjectServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubjectService" } }, - "cdsCategories": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsCategory" + "cdsCategories" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsCategory" } }, - "configurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ConfigurationKey" + "configurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/ConfigurationKey" } }, - "ftpServers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/FtpServer" + "ftpServers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/FtpServer" } }, - "languages": { - "type": "object", - "additionalProperties": { - "type": "string" + "languages" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" } }, - "gdeConfigurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GdeConfiguration" + "gdeConfigurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/GdeConfiguration" } }, - "metadataDict": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/MetadataDict" + "metadataDict" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/MetadataDict" } } } }, - "ConfigurationKey": { - "required": [ - "category", - "key", - "value" - ], - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" + "ConfigurationKey" : { + "required" : [ "category", "key", "value" ], + "type" : "object", + "properties" : { + "category" : { + "type" : "string" + }, + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Connection": { - "required": [ - "ip", - "port", - "protocol" - ], - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" + "Connection" : { + "required" : [ "ip", "port", "protocol" ], + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" } } }, - "CreditorInstitution": { - "required": [ - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean" - }, - "reporting_ftp": { - "type": "boolean" - }, - "reporting_zip": { - "type": "boolean" + "CreditorInstitution" : { + "required" : [ "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean" + }, + "reporting_ftp" : { + "type" : "boolean" + }, + "reporting_zip" : { + "type" : "boolean" } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "zip_code": { - "type": "string" + "zip_code" : { + "type" : "string" }, - "country_code": { - "type": "string" + "country_code" : { + "type" : "string" }, - "tax_domicile": { - "type": "string" + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionEncoding": { - "required": [ - "code_type", - "creditor_institution_code", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "encoding_code": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" + "CreditorInstitutionEncoding" : { + "required" : [ "code_type", "creditor_institution_code", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "encoding_code" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" } } }, - "CreditorInstitutionInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "CreditorInstitutionInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Encoding": { - "required": [ - "code_type", - "description" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "description": { - "type": "string" + "Encoding" : { + "required" : [ "code_type", "description" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "FtpServer": { - "required": [ - "enabled", - "history_path", - "host", - "id", - "in_path", - "out_path", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int32" - }, - "enabled": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "service": { - "type": "string" - }, - "type": { - "type": "string" - }, - "in_path": { - "type": "string" - }, - "out_path": { - "type": "string" - }, - "history_path": { - "type": "string" - }, - "id": { - "type": "integer", - "format": "int64" + "FtpServer" : { + "required" : [ "enabled", "history_path", "host", "id", "in_path", "out_path", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int32" + }, + "enabled" : { + "type" : "boolean" + }, + "username" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "root_path" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "in_path" : { + "type" : "string" + }, + "out_path" : { + "type" : "string" + }, + "history_path" : { + "type" : "string" + }, + "id" : { + "type" : "integer", + "format" : "int64" } } }, - "GdeConfiguration": { - "required": [ - "event_hub_enabled", - "event_hub_payload_enabled", - "primitive", - "type" - ], - "type": "object", - "properties": { - "primitive": { - "type": "string" - }, - "type": { - "type": "string" - }, - "event_hub_enabled": { - "type": "boolean" - }, - "event_hub_payload_enabled": { - "type": "boolean" + "GdeConfiguration" : { + "required" : [ "event_hub_enabled", "event_hub_payload_enabled", "primitive", "type" ], + "type" : "object", + "properties" : { + "primitive" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "event_hub_enabled" : { + "type" : "boolean" + }, + "event_hub_payload_enabled" : { + "type" : "boolean" } } }, - "Iban": { - "required": [ - "creditor_institution_code", - "iban", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "shop_id": { - "type": "string" - }, - "seller_bank_id": { - "type": "string" - }, - "avvio_key": { - "type": "string" - }, - "esito_key": { - "type": "string" + "Iban" : { + "required" : [ "creditor_institution_code", "iban", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "shop_id" : { + "type" : "string" + }, + "seller_bank_id" : { + "type" : "string" + }, + "avvio_key" : { + "type" : "string" + }, + "esito_key" : { + "type" : "string" } } }, - "MetadataDict": { - "required": [ - "key", - "start_date" - ], - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "description": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" + "MetadataDict" : { + "required" : [ "key", "start_date" ], + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" } } }, - "PaymentServiceProvider": { - "required": [ - "agid_psp", - "digital_stamp", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "agid_psp", "digital_stamp", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string" + "my_bank_code" : { + "type" : "string" }, - "digital_stamp": { - "type": "boolean" + "digital_stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean" + "agid_psp" : { + "type" : "boolean" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "vat_number": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "payment_type": { - "type": "string" - }, - "description": { - "type": "string" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "payment_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Plugin": { - "required": [ - "id_serv_plugin" - ], - "type": "object", - "properties": { - "id_serv_plugin": { - "type": "string" - }, - "pag_const_string_profile": { - "type": "string" - }, - "pag_soap_rule_profile": { - "type": "string" - }, - "pag_rpt_xpath_profile": { - "type": "string" - }, - "id_bean": { - "type": "string" + "Plugin" : { + "required" : [ "id_serv_plugin" ], + "type" : "object", + "properties" : { + "id_serv_plugin" : { + "type" : "string" + }, + "pag_const_string_profile" : { + "type" : "string" + }, + "pag_soap_rule_profile" : { + "type" : "string" + }, + "pag_rpt_xpath_profile" : { + "type" : "string" + }, + "id_bean" : { + "type" : "string" } } }, - "Proxy": { - "type": "object", - "properties": { - "proxy_host": { - "type": "string" + "Proxy" : { + "type" : "object", + "properties" : { + "proxy_host" : { + "type" : "string" }, - "proxy_port": { - "type": "integer", - "format": "int64" + "proxy_port" : { + "type" : "integer", + "format" : "int64" }, - "proxy_username": { - "type": "string" + "proxy_username" : { + "type" : "string" }, - "proxy_password": { - "type": "string" + "proxy_password" : { + "type" : "string" } } }, - "PspChannelPaymentType": { - "required": [ - "channel_code", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "channel_code": { - "type": "string" - }, - "payment_type": { - "type": "string" + "PspChannelPaymentType" : { + "required" : [ "channel_code", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "channel_code" : { + "type" : "string" + }, + "payment_type" : { + "type" : "string" } } }, - "PspInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "PspInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Redirect": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "query_string": { - "type": "string" + "Redirect" : { + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" + }, + "query_string" : { + "type" : "string" } } }, - "Service": { - "type": "object", - "properties": { - "path": { - "type": "string" + "Service" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string" }, - "target_host": { - "type": "string" + "target_host" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "target_path": { - "type": "string" + "target_path" : { + "type" : "string" } } }, - "Station": { - "required": [ - "broker_code", - "connection", - "enabled", - "invio_rt_istantaneo", - "password", - "primitive_version", - "redirect", - "station_code", - "thread_number", - "timeouts", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "connection_mod4": { - "$ref": "#/components/schemas/Connection" - }, - "password": { - "type": "string" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_pof": { - "$ref": "#/components/schemas/Service" - }, - "service_mod4": { - "$ref": "#/components/schemas/Service" - }, - "broker_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" + "Station" : { + "required" : [ "broker_code", "connection", "enabled", "invio_rt_istantaneo", "password", "primitive_version", "redirect", "station_code", "thread_number", "timeouts", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "connection_mod4" : { + "$ref" : "#/components/schemas/Connection" + }, + "password" : { + "type" : "string" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_pof" : { + "$ref" : "#/components/schemas/Service" + }, + "service_mod4" : { + "$ref" : "#/components/schemas/Service" + }, + "broker_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "invio_rt_istantaneo" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" } } }, - "StationCreditorInstitution": { - "required": [ - "broadcast", - "creditor_institution_code", - "mod4", - "primitive_version", - "spontaneous_payment", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "station_code": { - "type": "string" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "spontaneous_payment": { - "type": "boolean" + "StationCreditorInstitution" : { + "required" : [ "broadcast", "creditor_institution_code", "mod4", "primitive_version", "spontaneous_payment", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "station_code" : { + "type" : "string" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "spontaneous_payment" : { + "type" : "boolean" } } }, - "Timeouts": { - "required": [ - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "timeout_a": { - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "type": "integer", - "format": "int64" + "Timeouts" : { + "required" : [ "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "timeout_a" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "type" : "integer", + "format" : "int64" } } }, - "CacheVersion": { - "required": [ - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "CacheVersion" : { + "required" : [ "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" } } }, - "AppInfo": { - "required": [ - "environment", - "name", - "version" - ], - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "environment": { - "type": "string" - }, - "dbConnection": { - "type": "string" + "AppInfo" : { + "required" : [ "environment", "name", "version" ], + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "environment" : { + "type" : "string" + }, + "dbConnection" : { + "type" : "string" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } diff --git a/openapi/openapi_fdrv1.json b/openapi/openapi_fdrv1.json index 59c78ff5..7ec1b464 100644 --- a/openapi/openapi_fdrv1.json +++ b/openapi/openapi_fdrv1.json @@ -1,1223 +1,1039 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.7.0" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.7.0" }, - "servers": [ - { - "url": "http://localhost:8080", - "description": "Generated server url" + "servers" : [ { + "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" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] + } } - ], - "paths": { - "/stakeholders/fdr/cache/schemas/v1": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get selected key of fdr v1 config", - "operationId": "cache", - "parameters": [ - { - "name": "keys", - "in": "query", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "creditorInstitutions", - "creditorInstitutionBrokers", - "stations", - "creditorInstitutionStations", - "encodings", - "creditorInstitutionEncodings", - "ibans", - "creditorInstitutionInformations", - "psps", - "pspBrokers", - "paymentTypes", - "pspChannelPaymentTypes", - "plugins", - "pspInformationTemplates", - "pspInformations", - "channels", - "cdsServices", - "cdsSubjects", - "cdsSubjectServices", - "cdsCategories", - "configurations", - "ftpServers", - "languages", - "gdeConfigurations", - "metadataDict" - ] - } + } ], + "paths" : { + "/stakeholders/fdr/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] } } - ], - "responses": { - "403": { - "description": "Forbidden" - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" + }, + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "401": { - "description": "Unauthorized" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } }, - "/stakeholders/fdr/cache/schemas/v1/id": { - "get": { - "tags": [ - "FdrCache" - ], - "summary": "Get last fdr v1 cache version", - "operationId": "idV1", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "/stakeholders/fdr/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "429" : { + "description" : "Too many requests" + }, + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } - }, - "401": { - "description": "Unauthorized" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } } }, - "components": { - "schemas": { - "BrokerCreditorInstitution": { - "required": [ - "broker_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "extended_fault_bean": { - "type": "boolean" + "components" : { + "schemas" : { + "BrokerCreditorInstitution" : { + "required" : [ "broker_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsCategory": { - "required": [ - "description" - ], - "type": "object", - "properties": { - "description": { - "type": "string" + "CdsCategory" : { + "required" : [ "description" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string" } } }, - "CdsService": { - "required": [ - "category", - "description", - "id", - "reference_xsd", - "version" - ], - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "reference_xsd": { - "type": "string" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "category": { - "type": "string" + "CdsService" : { + "required" : [ "category", "description", "id", "reference_xsd", "version" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "reference_xsd" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "category" : { + "type" : "string" } } }, - "CdsSubject": { - "required": [ - "creditor_institution_code", - "creditor_institution_description" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "creditor_institution_description": { - "type": "string" + "CdsSubject" : { + "required" : [ "creditor_institution_code", "creditor_institution_description" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "creditor_institution_description" : { + "type" : "string" } } }, - "CdsSubjectService": { - "required": [ - "fee", - "service", - "start_date", - "subject", - "subject_service_id" - ], - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "service": { - "type": "string" - }, - "subject_service_id": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" - }, - "fee": { - "type": "boolean" - }, - "station_code": { - "type": "string" - }, - "service_description": { - "type": "string" + "CdsSubjectService" : { + "required" : [ "fee", "service", "start_date", "subject", "subject_service_id" ], + "type" : "object", + "properties" : { + "subject" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "subject_service_id" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" + }, + "fee" : { + "type" : "boolean" + }, + "station_code" : { + "type" : "string" + }, + "service_description" : { + "type" : "string" } } }, - "Channel": { - "required": [ - "agid", - "broker_psp_code", - "channel_code", - "connection", - "digital_stamp", - "enabled", - "flag_io", - "flag_psp_cp", - "new_fault_code", - "password", - "payment_model", - "primitive_version", - "recovery", - "redirect", - "rt_push", - "thread_number", - "timeouts" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_nmp": { - "$ref": "#/components/schemas/Service" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "new_fault_code": { - "type": "boolean" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "payment_model": { - "type": "string" - }, - "serv_plugin": { - "type": "string" - }, - "rt_push": { - "type": "boolean" - }, - "recovery": { - "type": "boolean" - }, - "digital_stamp": { - "type": "boolean" - }, - "flag_io": { - "type": "boolean" - }, - "agid": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "flag_psp_cp": { - "type": "boolean" + "Channel" : { + "required" : [ "agid", "broker_psp_code", "channel_code", "connection", "digital_stamp", "enabled", "flag_io", "flag_psp_cp", "new_fault_code", "password", "payment_model", "primitive_version", "recovery", "redirect", "rt_push", "thread_number", "timeouts" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "password" : { + "type" : "string" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_nmp" : { + "$ref" : "#/components/schemas/Service" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "payment_model" : { + "type" : "string" + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "flag_psp_cp" : { + "type" : "boolean" } } }, - "ConfigDataV1": { - "required": [ - "cdsCategories", - "cdsServices", - "cdsSubjectServices", - "cdsSubjects", - "channels", - "configurations", - "creditorInstitutionBrokers", - "creditorInstitutionEncodings", - "creditorInstitutionInformations", - "creditorInstitutionStations", - "creditorInstitutions", - "encodings", - "ftpServers", - "gdeConfigurations", - "ibans", - "languages", - "metadataDict", - "paymentTypes", - "plugins", - "pspBrokers", - "pspChannelPaymentTypes", - "pspInformationTemplates", - "pspInformations", - "psps", - "stations", - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "creditorInstitutions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitution" + "ConfigDataV1" : { + "required" : [ "cdsCategories", "cdsServices", "cdsSubjectServices", "cdsSubjects", "channels", "configurations", "creditorInstitutionBrokers", "creditorInstitutionEncodings", "creditorInstitutionInformations", "creditorInstitutionStations", "creditorInstitutions", "encodings", "ftpServers", "gdeConfigurations", "ibans", "languages", "metadataDict", "paymentTypes", "plugins", "pspBrokers", "pspChannelPaymentTypes", "pspInformationTemplates", "pspInformations", "psps", "stations", "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" + }, + "creditorInstitutions" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitution" } }, - "creditorInstitutionBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerCreditorInstitution" + "creditorInstitutionBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerCreditorInstitution" } }, - "stations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Station" + "stations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Station" } }, - "creditorInstitutionStations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/StationCreditorInstitution" + "creditorInstitutionStations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" } }, - "encodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Encoding" + "encodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Encoding" } }, - "creditorInstitutionEncodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionEncoding" + "creditorInstitutionEncodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncoding" } }, - "ibans": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Iban" + "ibans" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Iban" } }, - "creditorInstitutionInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionInformation" + "creditorInstitutionInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionInformation" } }, - "psps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "psps" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" } }, - "pspBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerPsp" + "pspBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerPsp" } }, - "paymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentType" + "paymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentType" } }, - "pspChannelPaymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspChannelPaymentType" + "pspChannelPaymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspChannelPaymentType" } }, - "plugins": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Plugin" + "plugins" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Plugin" } }, - "pspInformationTemplates": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformationTemplates" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "pspInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "channels": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Channel" + "channels" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Channel" } }, - "cdsServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsService" + "cdsServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsService" } }, - "cdsSubjects": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubject" + "cdsSubjects" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubject" } }, - "cdsSubjectServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubjectService" + "cdsSubjectServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubjectService" } }, - "cdsCategories": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsCategory" + "cdsCategories" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsCategory" } }, - "configurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ConfigurationKey" + "configurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/ConfigurationKey" } }, - "ftpServers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/FtpServer" + "ftpServers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/FtpServer" } }, - "languages": { - "type": "object", - "additionalProperties": { - "type": "string" + "languages" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" } }, - "gdeConfigurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GdeConfiguration" + "gdeConfigurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/GdeConfiguration" } }, - "metadataDict": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/MetadataDict" + "metadataDict" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/MetadataDict" } } } }, - "ConfigurationKey": { - "required": [ - "category", - "key", - "value" - ], - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" + "ConfigurationKey" : { + "required" : [ "category", "key", "value" ], + "type" : "object", + "properties" : { + "category" : { + "type" : "string" + }, + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Connection": { - "required": [ - "ip", - "port", - "protocol" - ], - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" + "Connection" : { + "required" : [ "ip", "port", "protocol" ], + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" } } }, - "CreditorInstitution": { - "required": [ - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean" - }, - "reporting_ftp": { - "type": "boolean" - }, - "reporting_zip": { - "type": "boolean" + "CreditorInstitution" : { + "required" : [ "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean" + }, + "reporting_ftp" : { + "type" : "boolean" + }, + "reporting_zip" : { + "type" : "boolean" } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "zip_code": { - "type": "string" + "zip_code" : { + "type" : "string" }, - "country_code": { - "type": "string" + "country_code" : { + "type" : "string" }, - "tax_domicile": { - "type": "string" + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionEncoding": { - "required": [ - "code_type", - "creditor_institution_code", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "encoding_code": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" + "CreditorInstitutionEncoding" : { + "required" : [ "code_type", "creditor_institution_code", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "encoding_code" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" } } }, - "CreditorInstitutionInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "CreditorInstitutionInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Encoding": { - "required": [ - "code_type", - "description" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "description": { - "type": "string" + "Encoding" : { + "required" : [ "code_type", "description" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "FtpServer": { - "required": [ - "enabled", - "history_path", - "host", - "id", - "in_path", - "out_path", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int32" - }, - "enabled": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "service": { - "type": "string" - }, - "type": { - "type": "string" - }, - "in_path": { - "type": "string" - }, - "out_path": { - "type": "string" - }, - "history_path": { - "type": "string" - }, - "id": { - "type": "integer", - "format": "int64" + "FtpServer" : { + "required" : [ "enabled", "history_path", "host", "id", "in_path", "out_path", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int32" + }, + "enabled" : { + "type" : "boolean" + }, + "username" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "root_path" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "in_path" : { + "type" : "string" + }, + "out_path" : { + "type" : "string" + }, + "history_path" : { + "type" : "string" + }, + "id" : { + "type" : "integer", + "format" : "int64" } } }, - "GdeConfiguration": { - "required": [ - "event_hub_enabled", - "event_hub_payload_enabled", - "primitive", - "type" - ], - "type": "object", - "properties": { - "primitive": { - "type": "string" - }, - "type": { - "type": "string" - }, - "event_hub_enabled": { - "type": "boolean" - }, - "event_hub_payload_enabled": { - "type": "boolean" + "GdeConfiguration" : { + "required" : [ "event_hub_enabled", "event_hub_payload_enabled", "primitive", "type" ], + "type" : "object", + "properties" : { + "primitive" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "event_hub_enabled" : { + "type" : "boolean" + }, + "event_hub_payload_enabled" : { + "type" : "boolean" } } }, - "Iban": { - "required": [ - "creditor_institution_code", - "iban", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "shop_id": { - "type": "string" - }, - "seller_bank_id": { - "type": "string" - }, - "avvio_key": { - "type": "string" - }, - "esito_key": { - "type": "string" + "Iban" : { + "required" : [ "creditor_institution_code", "iban", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "shop_id" : { + "type" : "string" + }, + "seller_bank_id" : { + "type" : "string" + }, + "avvio_key" : { + "type" : "string" + }, + "esito_key" : { + "type" : "string" } } }, - "MetadataDict": { - "required": [ - "key", - "start_date" - ], - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "description": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" + "MetadataDict" : { + "required" : [ "key", "start_date" ], + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" } } }, - "PaymentServiceProvider": { - "required": [ - "agid_psp", - "digital_stamp", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "agid_psp", "digital_stamp", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string" + "my_bank_code" : { + "type" : "string" }, - "digital_stamp": { - "type": "boolean" + "digital_stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean" + "agid_psp" : { + "type" : "boolean" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "vat_number": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "payment_type": { - "type": "string" - }, - "description": { - "type": "string" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "payment_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Plugin": { - "required": [ - "id_serv_plugin" - ], - "type": "object", - "properties": { - "id_serv_plugin": { - "type": "string" - }, - "pag_const_string_profile": { - "type": "string" - }, - "pag_soap_rule_profile": { - "type": "string" - }, - "pag_rpt_xpath_profile": { - "type": "string" - }, - "id_bean": { - "type": "string" + "Plugin" : { + "required" : [ "id_serv_plugin" ], + "type" : "object", + "properties" : { + "id_serv_plugin" : { + "type" : "string" + }, + "pag_const_string_profile" : { + "type" : "string" + }, + "pag_soap_rule_profile" : { + "type" : "string" + }, + "pag_rpt_xpath_profile" : { + "type" : "string" + }, + "id_bean" : { + "type" : "string" } } }, - "Proxy": { - "type": "object", - "properties": { - "proxy_host": { - "type": "string" + "Proxy" : { + "type" : "object", + "properties" : { + "proxy_host" : { + "type" : "string" }, - "proxy_port": { - "type": "integer", - "format": "int64" + "proxy_port" : { + "type" : "integer", + "format" : "int64" }, - "proxy_username": { - "type": "string" + "proxy_username" : { + "type" : "string" }, - "proxy_password": { - "type": "string" + "proxy_password" : { + "type" : "string" } } }, - "PspChannelPaymentType": { - "required": [ - "channel_code", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "channel_code": { - "type": "string" - }, - "payment_type": { - "type": "string" + "PspChannelPaymentType" : { + "required" : [ "channel_code", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "channel_code" : { + "type" : "string" + }, + "payment_type" : { + "type" : "string" } } }, - "PspInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "PspInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Redirect": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "query_string": { - "type": "string" + "Redirect" : { + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" + }, + "query_string" : { + "type" : "string" } } }, - "Service": { - "type": "object", - "properties": { - "path": { - "type": "string" + "Service" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string" }, - "target_host": { - "type": "string" + "target_host" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "target_path": { - "type": "string" + "target_path" : { + "type" : "string" } } }, - "Station": { - "required": [ - "broker_code", - "connection", - "enabled", - "invio_rt_istantaneo", - "password", - "primitive_version", - "redirect", - "station_code", - "thread_number", - "timeouts", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "connection_mod4": { - "$ref": "#/components/schemas/Connection" - }, - "password": { - "type": "string" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_pof": { - "$ref": "#/components/schemas/Service" - }, - "service_mod4": { - "$ref": "#/components/schemas/Service" - }, - "broker_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" + "Station" : { + "required" : [ "broker_code", "connection", "enabled", "invio_rt_istantaneo", "password", "primitive_version", "redirect", "station_code", "thread_number", "timeouts", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "connection_mod4" : { + "$ref" : "#/components/schemas/Connection" + }, + "password" : { + "type" : "string" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_pof" : { + "$ref" : "#/components/schemas/Service" + }, + "service_mod4" : { + "$ref" : "#/components/schemas/Service" + }, + "broker_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "invio_rt_istantaneo" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" } } }, - "StationCreditorInstitution": { - "required": [ - "broadcast", - "creditor_institution_code", - "mod4", - "primitive_version", - "spontaneous_payment", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "station_code": { - "type": "string" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "spontaneous_payment": { - "type": "boolean" + "StationCreditorInstitution" : { + "required" : [ "broadcast", "creditor_institution_code", "mod4", "primitive_version", "spontaneous_payment", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "station_code" : { + "type" : "string" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "spontaneous_payment" : { + "type" : "boolean" } } }, - "Timeouts": { - "required": [ - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "timeout_a": { - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "type": "integer", - "format": "int64" + "Timeouts" : { + "required" : [ "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "timeout_a" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "type" : "integer", + "format" : "int64" } } }, - "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" + "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" } } }, - "CacheVersion": { - "required": [ - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "CacheVersion" : { + "required" : [ "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_nodev1.json b/openapi/openapi_nodev1.json index 0b147960..0d070b04 100644 --- a/openapi/openapi_nodev1.json +++ b/openapi/openapi_nodev1.json @@ -1,1183 +1,1039 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.7.0" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.7.0" }, - "servers": [ - { - "url": "http://localhost:8080", - "description": "Generated server url" + "servers" : [ { + "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" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] + } } - ], - "paths": { - "/stakeholders/node/cache/schemas/v1": { - "get": { - "tags": [ - "NodeCache" - ], - "summary": "Get full node v1 config", - "operationId": "cache", - "responses": { - "403": { - "description": "Forbidden" - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigDataV1" + } ], + "paths" : { + "/stakeholders/node/cache/schemas/v1" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get selected key of fdr v1 config", + "operationId" : "cache", + "parameters" : [ { + "name" : "refresh", + "in" : "query", + "description" : "to force the refresh of the cache", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "keys", + "in" : "query", + "required" : false, + "schema" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "creditorInstitutions", "creditorInstitutionBrokers", "stations", "creditorInstitutionStations", "encodings", "creditorInstitutionEncodings", "ibans", "creditorInstitutionInformations", "psps", "pspBrokers", "paymentTypes", "pspChannelPaymentTypes", "plugins", "pspInformationTemplates", "pspInformations", "channels", "cdsServices", "cdsSubjects", "cdsSubjectServices", "cdsCategories", "configurations", "ftpServers", "languages", "gdeConfigurations", "metadataDict" ] + } + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigDataV1" } } } }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "429" : { + "description" : "Too many requests" + }, + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "401": { - "description": "Unauthorized" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } }, - "/stakeholders/node/cache/schemas/v1/id": { - "get": { - "tags": [ - "NodeCache" - ], - "summary": "Get last node v1 cache version", - "operationId": "idV1", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersion" + "/stakeholders/node/cache/schemas/v1/id" : { + "get" : { + "tags" : [ "FdrCache" ], + "summary" : "Get last fdr v1 cache version", + "operationId" : "idV1", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "429" : { + "description" : "Too many requests" + }, + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersion" } } } - }, - "401": { - "description": "Unauthorized" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } } }, - "components": { - "schemas": { - "BrokerCreditorInstitution": { - "required": [ - "broker_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "extended_fault_bean": { - "type": "boolean" + "components" : { + "schemas" : { + "BrokerCreditorInstitution" : { + "required" : [ "broker_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "CdsCategory": { - "required": [ - "description" - ], - "type": "object", - "properties": { - "description": { - "type": "string" + "CdsCategory" : { + "required" : [ "description" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string" } } }, - "CdsService": { - "required": [ - "category", - "description", - "id", - "reference_xsd", - "version" - ], - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "reference_xsd": { - "type": "string" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "category": { - "type": "string" + "CdsService" : { + "required" : [ "category", "description", "id", "reference_xsd", "version" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "reference_xsd" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "category" : { + "type" : "string" } } }, - "CdsSubject": { - "required": [ - "creditor_institution_code", - "creditor_institution_description" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "creditor_institution_description": { - "type": "string" + "CdsSubject" : { + "required" : [ "creditor_institution_code", "creditor_institution_description" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "creditor_institution_description" : { + "type" : "string" } } }, - "CdsSubjectService": { - "required": [ - "fee", - "service", - "start_date", - "subject", - "subject_service_id" - ], - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "service": { - "type": "string" - }, - "subject_service_id": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" - }, - "fee": { - "type": "boolean" - }, - "station_code": { - "type": "string" - }, - "service_description": { - "type": "string" + "CdsSubjectService" : { + "required" : [ "fee", "service", "start_date", "subject", "subject_service_id" ], + "type" : "object", + "properties" : { + "subject" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "subject_service_id" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" + }, + "fee" : { + "type" : "boolean" + }, + "station_code" : { + "type" : "string" + }, + "service_description" : { + "type" : "string" } } }, - "Channel": { - "required": [ - "agid", - "broker_psp_code", - "channel_code", - "connection", - "digital_stamp", - "enabled", - "flag_io", - "flag_psp_cp", - "new_fault_code", - "password", - "payment_model", - "primitive_version", - "recovery", - "redirect", - "rt_push", - "thread_number", - "timeouts" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_nmp": { - "$ref": "#/components/schemas/Service" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "new_fault_code": { - "type": "boolean" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "payment_model": { - "type": "string" - }, - "serv_plugin": { - "type": "string" - }, - "rt_push": { - "type": "boolean" - }, - "recovery": { - "type": "boolean" - }, - "digital_stamp": { - "type": "boolean" - }, - "flag_io": { - "type": "boolean" - }, - "agid": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "flag_psp_cp": { - "type": "boolean" + "Channel" : { + "required" : [ "agid", "broker_psp_code", "channel_code", "connection", "digital_stamp", "enabled", "flag_io", "flag_psp_cp", "new_fault_code", "password", "payment_model", "primitive_version", "recovery", "redirect", "rt_push", "thread_number", "timeouts" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "password" : { + "type" : "string" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "broker_psp_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_nmp" : { + "$ref" : "#/components/schemas/Service" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "payment_model" : { + "type" : "string" + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "flag_psp_cp" : { + "type" : "boolean" } } }, - "ConfigDataV1": { - "required": [ - "cdsCategories", - "cdsServices", - "cdsSubjectServices", - "cdsSubjects", - "channels", - "configurations", - "creditorInstitutionBrokers", - "creditorInstitutionEncodings", - "creditorInstitutionInformations", - "creditorInstitutionStations", - "creditorInstitutions", - "encodings", - "ftpServers", - "gdeConfigurations", - "ibans", - "languages", - "metadataDict", - "paymentTypes", - "plugins", - "pspBrokers", - "pspChannelPaymentTypes", - "pspInformationTemplates", - "pspInformations", - "psps", - "stations", - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "creditorInstitutions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitution" + "ConfigDataV1" : { + "required" : [ "cdsCategories", "cdsServices", "cdsSubjectServices", "cdsSubjects", "channels", "configurations", "creditorInstitutionBrokers", "creditorInstitutionEncodings", "creditorInstitutionInformations", "creditorInstitutionStations", "creditorInstitutions", "encodings", "ftpServers", "gdeConfigurations", "ibans", "languages", "metadataDict", "paymentTypes", "plugins", "pspBrokers", "pspChannelPaymentTypes", "pspInformationTemplates", "pspInformations", "psps", "stations", "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" + }, + "creditorInstitutions" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitution" } }, - "creditorInstitutionBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerCreditorInstitution" + "creditorInstitutionBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerCreditorInstitution" } }, - "stations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Station" + "stations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Station" } }, - "creditorInstitutionStations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/StationCreditorInstitution" + "creditorInstitutionStations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" } }, - "encodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Encoding" + "encodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Encoding" } }, - "creditorInstitutionEncodings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionEncoding" + "creditorInstitutionEncodings" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncoding" } }, - "ibans": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Iban" + "ibans" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Iban" } }, - "creditorInstitutionInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CreditorInstitutionInformation" + "creditorInstitutionInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CreditorInstitutionInformation" } }, - "psps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "psps" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" } }, - "pspBrokers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/BrokerPsp" + "pspBrokers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/BrokerPsp" } }, - "paymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PaymentType" + "paymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PaymentType" } }, - "pspChannelPaymentTypes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspChannelPaymentType" + "pspChannelPaymentTypes" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspChannelPaymentType" } }, - "plugins": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Plugin" + "plugins" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Plugin" } }, - "pspInformationTemplates": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformationTemplates" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "pspInformations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PspInformation" + "pspInformations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/PspInformation" } }, - "channels": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Channel" + "channels" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Channel" } }, - "cdsServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsService" + "cdsServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsService" } }, - "cdsSubjects": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubject" + "cdsSubjects" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubject" } }, - "cdsSubjectServices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsSubjectService" + "cdsSubjectServices" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsSubjectService" } }, - "cdsCategories": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CdsCategory" + "cdsCategories" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/CdsCategory" } }, - "configurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ConfigurationKey" + "configurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/ConfigurationKey" } }, - "ftpServers": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/FtpServer" + "ftpServers" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/FtpServer" } }, - "languages": { - "type": "object", - "additionalProperties": { - "type": "string" + "languages" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" } }, - "gdeConfigurations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GdeConfiguration" + "gdeConfigurations" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/GdeConfiguration" } }, - "metadataDict": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/MetadataDict" + "metadataDict" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/MetadataDict" } } } }, - "ConfigurationKey": { - "required": [ - "category", - "key", - "value" - ], - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" + "ConfigurationKey" : { + "required" : [ "category", "key", "value" ], + "type" : "object", + "properties" : { + "category" : { + "type" : "string" + }, + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Connection": { - "required": [ - "ip", - "port", - "protocol" - ], - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" + "Connection" : { + "required" : [ "ip", "port", "protocol" ], + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" } } }, - "CreditorInstitution": { - "required": [ - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean" - }, - "reporting_ftp": { - "type": "boolean" - }, - "reporting_zip": { - "type": "boolean" + "CreditorInstitution" : { + "required" : [ "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean" + }, + "reporting_ftp" : { + "type" : "boolean" + }, + "reporting_zip" : { + "type" : "boolean" } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "zip_code": { - "type": "string" + "zip_code" : { + "type" : "string" }, - "country_code": { - "type": "string" + "country_code" : { + "type" : "string" }, - "tax_domicile": { - "type": "string" + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionEncoding": { - "required": [ - "code_type", - "creditor_institution_code", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "encoding_code": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" + "CreditorInstitutionEncoding" : { + "required" : [ "code_type", "creditor_institution_code", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "encoding_code" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" } } }, - "CreditorInstitutionInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "CreditorInstitutionInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Encoding": { - "required": [ - "code_type", - "description" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string" - }, - "description": { - "type": "string" + "Encoding" : { + "required" : [ "code_type", "description" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "FtpServer": { - "required": [ - "enabled", - "history_path", - "host", - "id", - "in_path", - "out_path", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int32" - }, - "enabled": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "service": { - "type": "string" - }, - "type": { - "type": "string" - }, - "in_path": { - "type": "string" - }, - "out_path": { - "type": "string" - }, - "history_path": { - "type": "string" - }, - "id": { - "type": "integer", - "format": "int64" + "FtpServer" : { + "required" : [ "enabled", "history_path", "host", "id", "in_path", "out_path", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int32" + }, + "enabled" : { + "type" : "boolean" + }, + "username" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "root_path" : { + "type" : "string" + }, + "service" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "in_path" : { + "type" : "string" + }, + "out_path" : { + "type" : "string" + }, + "history_path" : { + "type" : "string" + }, + "id" : { + "type" : "integer", + "format" : "int64" } } }, - "GdeConfiguration": { - "required": [ - "event_hub_enabled", - "event_hub_payload_enabled", - "primitive", - "type" - ], - "type": "object", - "properties": { - "primitive": { - "type": "string" - }, - "type": { - "type": "string" - }, - "event_hub_enabled": { - "type": "boolean" - }, - "event_hub_payload_enabled": { - "type": "boolean" + "GdeConfiguration" : { + "required" : [ "event_hub_enabled", "event_hub_payload_enabled", "primitive", "type" ], + "type" : "object", + "properties" : { + "primitive" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "event_hub_enabled" : { + "type" : "boolean" + }, + "event_hub_payload_enabled" : { + "type" : "boolean" } } }, - "Iban": { - "required": [ - "creditor_institution_code", - "iban", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "type": "string" - }, - "creditor_institution_code": { - "type": "string" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "shop_id": { - "type": "string" - }, - "seller_bank_id": { - "type": "string" - }, - "avvio_key": { - "type": "string" - }, - "esito_key": { - "type": "string" + "Iban" : { + "required" : [ "creditor_institution_code", "iban", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "type" : "string" + }, + "creditor_institution_code" : { + "type" : "string" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "shop_id" : { + "type" : "string" + }, + "seller_bank_id" : { + "type" : "string" + }, + "avvio_key" : { + "type" : "string" + }, + "esito_key" : { + "type" : "string" } } }, - "MetadataDict": { - "required": [ - "key", - "start_date" - ], - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "description": { - "type": "string" - }, - "start_date": { - "type": "string", - "format": "date-time" - }, - "end_date": { - "type": "string", - "format": "date-time" + "MetadataDict" : { + "required" : [ "key", "start_date" ], + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "start_date" : { + "type" : "string", + "format" : "date-time" + }, + "end_date" : { + "type" : "string", + "format" : "date-time" } } }, - "PaymentServiceProvider": { - "required": [ - "agid_psp", - "digital_stamp", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "agid_psp", "digital_stamp", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string" + "my_bank_code" : { + "type" : "string" }, - "digital_stamp": { - "type": "boolean" + "digital_stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean" + "agid_psp" : { + "type" : "boolean" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "vat_number": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "payment_type": { - "type": "string" - }, - "description": { - "type": "string" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "payment_type" : { + "type" : "string" + }, + "description" : { + "type" : "string" } } }, - "Plugin": { - "required": [ - "id_serv_plugin" - ], - "type": "object", - "properties": { - "id_serv_plugin": { - "type": "string" - }, - "pag_const_string_profile": { - "type": "string" - }, - "pag_soap_rule_profile": { - "type": "string" - }, - "pag_rpt_xpath_profile": { - "type": "string" - }, - "id_bean": { - "type": "string" + "Plugin" : { + "required" : [ "id_serv_plugin" ], + "type" : "object", + "properties" : { + "id_serv_plugin" : { + "type" : "string" + }, + "pag_const_string_profile" : { + "type" : "string" + }, + "pag_soap_rule_profile" : { + "type" : "string" + }, + "pag_rpt_xpath_profile" : { + "type" : "string" + }, + "id_bean" : { + "type" : "string" } } }, - "Proxy": { - "type": "object", - "properties": { - "proxy_host": { - "type": "string" + "Proxy" : { + "type" : "object", + "properties" : { + "proxy_host" : { + "type" : "string" }, - "proxy_port": { - "type": "integer", - "format": "int64" + "proxy_port" : { + "type" : "integer", + "format" : "int64" }, - "proxy_username": { - "type": "string" + "proxy_username" : { + "type" : "string" }, - "proxy_password": { - "type": "string" + "proxy_password" : { + "type" : "string" } } }, - "PspChannelPaymentType": { - "required": [ - "channel_code", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "channel_code": { - "type": "string" - }, - "payment_type": { - "type": "string" + "PspChannelPaymentType" : { + "required" : [ "channel_code", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "channel_code" : { + "type" : "string" + }, + "payment_type" : { + "type" : "string" } } }, - "PspInformation": { - "required": [ - "informativa" - ], - "type": "object", - "properties": { - "informativa": { - "type": "string" + "PspInformation" : { + "required" : [ "informativa" ], + "type" : "object", + "properties" : { + "informativa" : { + "type" : "string" } } }, - "Redirect": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "query_string": { - "type": "string" + "Redirect" : { + "type" : "object", + "properties" : { + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "port" : { + "type" : "integer", + "format" : "int64" + }, + "query_string" : { + "type" : "string" } } }, - "Service": { - "type": "object", - "properties": { - "path": { - "type": "string" + "Service" : { + "type" : "object", + "properties" : { + "path" : { + "type" : "string" }, - "target_host": { - "type": "string" + "target_host" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "target_path": { - "type": "string" + "target_path" : { + "type" : "string" } } }, - "Station": { - "required": [ - "broker_code", - "connection", - "enabled", - "invio_rt_istantaneo", - "password", - "primitive_version", - "redirect", - "station_code", - "thread_number", - "timeouts", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "version": { - "type": "integer", - "format": "int64" - }, - "connection": { - "$ref": "#/components/schemas/Connection" - }, - "connection_mod4": { - "$ref": "#/components/schemas/Connection" - }, - "password": { - "type": "string" - }, - "redirect": { - "$ref": "#/components/schemas/Redirect" - }, - "service": { - "$ref": "#/components/schemas/Service" - }, - "service_pof": { - "$ref": "#/components/schemas/Service" - }, - "service_mod4": { - "$ref": "#/components/schemas/Service" - }, - "broker_code": { - "type": "string" - }, - "proxy": { - "$ref": "#/components/schemas/Proxy" - }, - "thread_number": { - "type": "integer", - "format": "int64" - }, - "timeouts": { - "$ref": "#/components/schemas/Timeouts" - }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" + "Station" : { + "required" : [ "broker_code", "connection", "enabled", "invio_rt_istantaneo", "password", "primitive_version", "redirect", "station_code", "thread_number", "timeouts", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "version" : { + "type" : "integer", + "format" : "int64" + }, + "connection" : { + "$ref" : "#/components/schemas/Connection" + }, + "connection_mod4" : { + "$ref" : "#/components/schemas/Connection" + }, + "password" : { + "type" : "string" + }, + "redirect" : { + "$ref" : "#/components/schemas/Redirect" + }, + "service" : { + "$ref" : "#/components/schemas/Service" + }, + "service_pof" : { + "$ref" : "#/components/schemas/Service" + }, + "service_mod4" : { + "$ref" : "#/components/schemas/Service" + }, + "broker_code" : { + "type" : "string" + }, + "proxy" : { + "$ref" : "#/components/schemas/Proxy" + }, + "thread_number" : { + "type" : "integer", + "format" : "int64" + }, + "timeouts" : { + "$ref" : "#/components/schemas/Timeouts" + }, + "invio_rt_istantaneo" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" } } }, - "StationCreditorInstitution": { - "required": [ - "broadcast", - "creditor_institution_code", - "mod4", - "primitive_version", - "spontaneous_payment", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "type": "string" - }, - "station_code": { - "type": "string" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "primitive_version": { - "type": "integer", - "format": "int32" - }, - "spontaneous_payment": { - "type": "boolean" + "StationCreditorInstitution" : { + "required" : [ "broadcast", "creditor_institution_code", "mod4", "primitive_version", "spontaneous_payment", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "type" : "string" + }, + "station_code" : { + "type" : "string" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "primitive_version" : { + "type" : "integer", + "format" : "int32" + }, + "spontaneous_payment" : { + "type" : "boolean" } } }, - "Timeouts": { - "required": [ - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "timeout_a": { - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "type": "integer", - "format": "int64" + "Timeouts" : { + "required" : [ "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "timeout_a" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "type" : "integer", + "format" : "int64" } } }, - "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" + "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" } } }, - "CacheVersion": { - "required": [ - "version" - ], - "type": "object", - "properties": { - "version": { - "type": "string" + "CacheVersion" : { + "required" : [ "version" ], + "type" : "object", + "properties" : { + "version" : { + "type" : "string" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/openapi/openapi_verifierv1.json b/openapi/openapi_verifierv1.json index 2c0efddb..cae283b7 100644 --- a/openapi/openapi_verifierv1.json +++ b/openapi/openapi_verifierv1.json @@ -1,106 +1,111 @@ { - "openapi": "3.0.1", - "info": { - "title": "API-Config Cacher", - "description": "Generate cache for regarding Nodo dei Pagamenti configuration", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.7.0" + "openapi" : "3.0.1", + "info" : { + "title" : "API-Config Cacher", + "description" : "Generate cache for regarding Nodo dei Pagamenti configuration", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.7.0" }, - "servers": [ - { - "url": "http://localhost:8080", - "description": "Generated server url" + "servers" : [ { + "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" : "api-config-cache/o/v1", + "enum" : [ "api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1" ] + } } - ], - "paths": { - "/stakeholders/verifier/cache/schemas/v1": { - "get": { - "tags": [ - "VerifierCache" - ], - "summary": "Get Creditor Institution list with Station v2", - "operationId": "cache", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string" + } ], + "paths" : { + "/stakeholders/verifier/cache/schemas/v1" : { + "get" : { + "tags" : [ "VerifierCache" ], + "summary" : "Get Creditor Institution list with Station v2", + "operationId" : "cache", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden" + "429" : { + "description" : "Too many requests" }, - "500": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "500" : { + "description" : "Service unavailable", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } - }, - "401": { - "description": "Unauthorized" } }, - "security": [ - { - "ApiKey": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + } ] } } }, - "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" + "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 + "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" + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" } } } -} +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index fa1c2f9a..0d7df84a 100644 --- a/pom.xml +++ b/pom.xml @@ -248,7 +248,18 @@ + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + + + src/test/resources + true + + diff --git a/postman-collection/API_Config_Cache.postman_collection.json b/postman-collection/API_Config_Cache.postman_collection.json deleted file mode 100644 index 607074e0..00000000 --- a/postman-collection/API_Config_Cache.postman_collection.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "info": { - "_postman_id": "a6a79064-23bc-49bd-8ee8-a03647877f04", - "name": "API Config Cache", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "3634782" - }, - "item": [ - { - "name": "Get cache", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{api-config-cache-host}}/api-config-cache/p/v1/stakeholders/node/cache/schemas/v1", - "host": [ - "{{api-config-cache-host}}" - ], - "path": [ - "api-config-cache", - "p", - "v1", - "stakeholders", - "node", - "cache", - "schemas", - "v1" - ] - } - }, - "response": [] - }, - { - "name": "Get cache id", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{api-config-cache-host}}/api-config-cache/p/v1/stakeholders/node/cache/schemas/v1/id", - "host": [ - "{{api-config-cache-host}}" - ], - "path": [ - "api-config-cache", - "p", - "v1", - "stakeholders", - "node", - "cache", - "schemas", - "v1", - "id" - ] - } - }, - "response": [] - } - ], - "auth": { - "type": "apikey", - "apikey": [ - { - "key": "value", - "value": "{{subscription-key}}", - "type": "string" - }, - { - "key": "key", - "value": "Ocp-Apim-Subscription-Key", - "type": "string" - } - ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ] -} \ No newline at end of file diff --git a/postman-collection/API_Config_Cache_Dev.postman_environment.json b/postman-collection/API_Config_Cache_Dev.postman_environment.json deleted file mode 100644 index 7776cc33..00000000 --- a/postman-collection/API_Config_Cache_Dev.postman_environment.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "id": "1ec4133f-b31e-4ddf-8c3d-506012c6741e", - "name": "API Config Cache - Dev", - "values": [ - { - "key": "api-config-cache-host", - "value": "https://api.dev.platform.pagopa.it", - "type": "default", - "enabled": true - }, - { - "key": "subscription-key", - "value": "873c23d532914c50906571d798e124a3", - "type": "default", - "enabled": true - } - ], - "_postman_variable_scope": "environment", - "_postman_exported_at": "2023-03-13T14:44:02.136Z", - "_postman_exported_using": "Postman/10.8.8" -} \ No newline at end of file diff --git a/postman-collection/cache.postman_collection.json b/postman-collection/cache.postman_collection.json new file mode 100644 index 00000000..3cb6e64b --- /dev/null +++ b/postman-collection/cache.postman_collection.json @@ -0,0 +1,2376 @@ +{ + "info": { + "_postman_id": "a9197627-f686-485a-b883-bdde041b1871", + "name": "cache", + "description": "Generate cache for regarding Nodo dei Pagamenti configuration", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "205220" + }, + "item": [ + { + "name": "Home", + "item": [ + { + "name": "/info", + "request": { + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "key", + "value": "Ocp-Apim-Subscription-Key", + "type": "string" + }, + { + "key": "value", + "value": "{{apiKey}}", + "type": "string" + }, + { + "key": "in", + "value": "header", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"environment\": \"\",\n \"name\": \"\",\n \"version\": \"\",\n \"dbConnection\": \"\"\n}" + }, + { + "name": "Bad Request", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Too many requests", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "status": "Too Many Requests", + "code": 429, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service unavailable", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/info", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "info" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + } + ] + } + ] + }, + { + "name": "Cache", + "item": [ + { + "name": "/stakeholders/fdr/cache/schemas/v1", + "request": { + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "key", + "value": "Ocp-Apim-Subscription-Key", + "type": "string" + }, + { + "key": "value", + "value": "{{apiKey}}", + "type": "string" + }, + { + "key": "in", + "value": "header", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1?refresh=&keys=gdeConfigurations&keys=gdeConfigurations", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache" + }, + { + "key": "keys", + "value": "gdeConfigurations" + }, + { + "key": "keys", + "value": "gdeConfigurations" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "https://api.dev.platform.pagopa.it/api-config-cache/o/v1/stakeholders/fdr/cache/schemas/v1", + "protocol": "https", + "host": [ + "api", + "dev", + "platform", + "pagopa", + "it" + ], + "path": [ + "api-config-cache", + "o", + "v1", + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"cdsCategories\": {\n \"velitc9c\": {\n \"description\": \"\"\n },\n \"laboris1ae\": {\n \"description\": \"\"\n },\n \"consequata\": {\n \"description\": \"\"\n },\n \"et39\": {\n \"description\": \"\"\n },\n \"ut_65\": {\n \"description\": \"\"\n }\n },\n \"cdsServices\": {\n \"in_cb8\": {\n \"category\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"reference_xsd\": \"\",\n \"version\": \"\"\n }\n },\n \"cdsSubjectServices\": {\n \"ea_ba0\": {\n \"fee\": \"\",\n \"service\": \"\",\n \"start_date\": \"\",\n \"subject\": \"\",\n \"subject_service_id\": \"\",\n \"end_date\": \"\",\n \"station_code\": \"\",\n \"service_description\": \"\"\n },\n \"enim23\": {\n \"fee\": \"\",\n \"service\": \"\",\n \"start_date\": \"\",\n \"subject\": \"\",\n \"subject_service_id\": \"\",\n \"end_date\": \"\",\n \"station_code\": \"\",\n \"service_description\": \"\"\n }\n },\n \"cdsSubjects\": {\n \"pariatur_35\": {\n \"creditor_institution_code\": \"\",\n \"creditor_institution_description\": \"\"\n }\n },\n \"channels\": {\n \"fugiatcf9\": {\n \"agid\": \"\",\n \"broker_psp_code\": \"\",\n \"channel_code\": \"\",\n \"connection\": {\n \"ip\": \"\",\n \"port\": \"\",\n \"protocol\": \"HTTPS\"\n },\n \"digital_stamp\": \"\",\n \"enabled\": \"\",\n \"flag_io\": \"\",\n \"flag_psp_cp\": \"\",\n \"new_fault_code\": \"\",\n \"password\": \"\",\n \"payment_model\": \"\",\n \"primitive_version\": \"\",\n \"recovery\": \"\",\n \"redirect\": {\n \"protocol\": \"HTTPS\",\n \"ip\": \"\",\n \"path\": \"\",\n \"port\": \"\",\n \"query_string\": \"\"\n },\n \"rt_push\": \"\",\n \"thread_number\": \"\",\n \"timeouts\": {\n \"timeout_a\": \"\",\n \"timeout_b\": \"\",\n \"timeout_c\": \"\"\n },\n \"description\": \"\",\n \"proxy\": {\n \"proxy_host\": \"\",\n \"proxy_port\": \"\",\n \"proxy_username\": \"\",\n \"proxy_password\": \"\"\n },\n \"service\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"service_nmp\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"serv_plugin\": \"\"\n }\n },\n \"configurations\": {\n \"dolore4\": {\n \"category\": \"\",\n \"key\": \"\",\n \"value\": \"\",\n \"description\": \"\"\n },\n \"eiusmod_a0\": {\n \"category\": \"\",\n \"key\": \"\",\n \"value\": \"\",\n \"description\": \"\"\n }\n },\n \"creditorInstitutionBrokers\": {\n \"veniam__\": {\n \"broker_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"enim_63\": {\n \"broker_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"enim_d\": {\n \"broker_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n }\n },\n \"creditorInstitutionEncodings\": {\n \"amet6b\": {\n \"code_type\": \"\",\n \"creditor_institution_code\": \"\",\n \"encoding_code\": \"\"\n },\n \"amet99d\": {\n \"code_type\": \"\",\n \"creditor_institution_code\": \"\",\n \"encoding_code\": \"\"\n },\n \"adipisicing_d20\": {\n \"code_type\": \"\",\n \"creditor_institution_code\": \"\",\n \"encoding_code\": \"\"\n }\n },\n \"creditorInstitutionInformations\": {\n \"adipisicing_cd\": {\n \"informativa\": \"\"\n },\n \"mollit34\": {\n \"informativa\": \"\"\n }\n },\n \"creditorInstitutionStations\": {\n \"culpa906\": {\n \"broadcast\": \"\",\n \"creditor_institution_code\": \"\",\n \"mod4\": \"\",\n \"primitive_version\": \"\",\n \"spontaneous_payment\": \"\",\n \"station_code\": \"\",\n \"application_code\": \"\",\n \"aux_digit\": \"\",\n \"segregation_code\": \"\"\n }\n },\n \"creditorInstitutions\": {\n \"quise60\": {\n \"creditor_institution_code\": \"\",\n \"enabled\": \"\",\n \"psp_payment\": \"\",\n \"reporting_ftp\": \"\",\n \"reporting_zip\": \"\",\n \"business_name\": \"\",\n \"description\": \"\",\n \"address\": {\n \"location\": \"\",\n \"city\": \"\",\n \"zip_code\": \"\",\n \"country_code\": \"\",\n \"tax_domicile\": \"\"\n }\n }\n },\n \"encodings\": {\n \"fugiatb3a\": {\n \"code_type\": \"\",\n \"description\": \"\"\n },\n \"minim_54c\": {\n \"code_type\": \"\",\n \"description\": \"\"\n },\n \"pariatur4\": {\n \"code_type\": \"\",\n \"description\": \"\"\n }\n },\n \"ftpServers\": {\n \"officia_0a\": {\n \"enabled\": \"\",\n \"history_path\": \"\",\n \"host\": \"\",\n \"id\": \"\",\n \"in_path\": \"\",\n \"out_path\": \"\",\n \"password\": \"\",\n \"port\": \"\",\n \"root_path\": \"\",\n \"service\": \"\",\n \"type\": \"\",\n \"username\": \"\"\n },\n \"enim_c47\": {\n \"enabled\": \"\",\n \"history_path\": \"\",\n \"host\": \"\",\n \"id\": \"\",\n \"in_path\": \"\",\n \"out_path\": \"\",\n \"password\": \"\",\n \"port\": \"\",\n \"root_path\": \"\",\n \"service\": \"\",\n \"type\": \"\",\n \"username\": \"\"\n }\n },\n \"gdeConfigurations\": {\n \"dolor_044\": {\n \"event_hub_enabled\": \"\",\n \"event_hub_payload_enabled\": \"\",\n \"primitive\": \"\",\n \"type\": \"\"\n }\n },\n \"ibans\": {\n \"enim_cb\": {\n \"creditor_institution_code\": \"\",\n \"iban\": \"\",\n \"publication_date\": \"\",\n \"validity_date\": \"\",\n \"shop_id\": \"\",\n \"seller_bank_id\": \"\",\n \"avvio_key\": \"\",\n \"esito_key\": \"\"\n }\n },\n \"languages\": {\n \"animfb9\": \"\",\n \"do_12a\": \"\"\n },\n \"metadataDict\": {\n \"labore5\": {\n \"key\": \"\",\n \"start_date\": \"\",\n \"description\": \"\",\n \"end_date\": \"\"\n }\n },\n \"paymentTypes\": {\n \"non__3\": {\n \"payment_type\": \"\",\n \"description\": \"\"\n },\n \"Excepteur_5\": {\n \"payment_type\": \"\",\n \"description\": \"\"\n }\n },\n \"plugins\": {\n \"nulla_00\": {\n \"id_serv_plugin\": \"\",\n \"pag_const_string_profile\": \"\",\n \"pag_soap_rule_profile\": \"\",\n \"pag_rpt_xpath_profile\": \"\",\n \"id_bean\": \"\"\n }\n },\n \"pspBrokers\": {\n \"nisi_b\": {\n \"broker_psp_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"voluptatefa0\": {\n \"broker_psp_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"aliqua_09f\": {\n \"broker_psp_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n }\n },\n \"pspChannelPaymentTypes\": {\n \"occaecatb\": {\n \"channel_code\": \"\",\n \"payment_type\": \"\",\n \"psp_code\": \"\"\n },\n \"eu_43\": {\n \"channel_code\": \"\",\n \"payment_type\": \"\",\n \"psp_code\": \"\"\n }\n },\n \"pspInformationTemplates\": {\n \"aute_7\": {\n \"informativa\": \"\"\n }\n },\n \"pspInformations\": {\n \"pariatur3_\": {\n \"informativa\": \"\"\n },\n \"sedc0\": {\n \"informativa\": \"\"\n }\n },\n \"psps\": {\n \"Lorem_b8\": {\n \"agid_psp\": \"\",\n \"digital_stamp\": \"\",\n \"enabled\": \"\",\n \"psp_code\": \"\",\n \"description\": \"\",\n \"business_name\": \"\",\n \"abi\": \"\",\n \"bic\": \"\",\n \"my_bank_code\": \"\",\n \"tax_code\": \"\",\n \"vat_number\": \"\"\n }\n },\n \"stations\": {\n \"deserunt_9e\": {\n \"broker_code\": \"\",\n \"connection\": {\n \"ip\": \"\",\n \"port\": \"\",\n \"protocol\": \"HTTPS\"\n },\n \"enabled\": \"\",\n \"invio_rt_istantaneo\": \"\",\n \"password\": \"\",\n \"primitive_version\": \"\",\n \"redirect\": {\n \"protocol\": \"HTTPS\",\n \"ip\": \"\",\n \"path\": \"\",\n \"port\": \"\",\n \"query_string\": \"\"\n },\n \"station_code\": \"\",\n \"thread_number\": \"\",\n \"timeouts\": {\n \"timeout_a\": \"\",\n \"timeout_b\": \"\",\n \"timeout_c\": \"\"\n },\n \"version\": \"\",\n \"connection_mod4\": {\n \"ip\": \"\",\n \"port\": \"\",\n \"protocol\": \"HTTPS\"\n },\n \"service\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"service_pof\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"service_mod4\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"proxy\": {\n \"proxy_host\": \"\",\n \"proxy_port\": \"\",\n \"proxy_username\": \"\",\n \"proxy_password\": \"\"\n }\n }\n },\n \"version\": \"\"\n}" + }, + { + "name": "Bad Request", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Too many requests", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Too Many Requests", + "code": 429, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service unavailable", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + } + ] + }, + { + "name": "/stakeholders/node/cache/schemas/v1", + "request": { + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "key", + "value": "Ocp-Apim-Subscription-Key", + "type": "string" + }, + { + "key": "value", + "value": "{{apiKey}}", + "type": "string" + }, + { + "key": "in", + "value": "header", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1?refresh=&keys=gdeConfigurations&keys=gdeConfigurations", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache" + }, + { + "key": "keys", + "value": "gdeConfigurations" + }, + { + "key": "keys", + "value": "gdeConfigurations" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"cdsCategories\": {\n \"velitc9c\": {\n \"description\": \"\"\n },\n \"laboris1ae\": {\n \"description\": \"\"\n },\n \"consequata\": {\n \"description\": \"\"\n },\n \"et39\": {\n \"description\": \"\"\n },\n \"ut_65\": {\n \"description\": \"\"\n }\n },\n \"cdsServices\": {\n \"in_cb8\": {\n \"category\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"reference_xsd\": \"\",\n \"version\": \"\"\n }\n },\n \"cdsSubjectServices\": {\n \"ea_ba0\": {\n \"fee\": \"\",\n \"service\": \"\",\n \"start_date\": \"\",\n \"subject\": \"\",\n \"subject_service_id\": \"\",\n \"end_date\": \"\",\n \"station_code\": \"\",\n \"service_description\": \"\"\n },\n \"enim23\": {\n \"fee\": \"\",\n \"service\": \"\",\n \"start_date\": \"\",\n \"subject\": \"\",\n \"subject_service_id\": \"\",\n \"end_date\": \"\",\n \"station_code\": \"\",\n \"service_description\": \"\"\n }\n },\n \"cdsSubjects\": {\n \"pariatur_35\": {\n \"creditor_institution_code\": \"\",\n \"creditor_institution_description\": \"\"\n }\n },\n \"channels\": {\n \"fugiatcf9\": {\n \"agid\": \"\",\n \"broker_psp_code\": \"\",\n \"channel_code\": \"\",\n \"connection\": {\n \"ip\": \"\",\n \"port\": \"\",\n \"protocol\": \"HTTPS\"\n },\n \"digital_stamp\": \"\",\n \"enabled\": \"\",\n \"flag_io\": \"\",\n \"flag_psp_cp\": \"\",\n \"new_fault_code\": \"\",\n \"password\": \"\",\n \"payment_model\": \"\",\n \"primitive_version\": \"\",\n \"recovery\": \"\",\n \"redirect\": {\n \"protocol\": \"HTTPS\",\n \"ip\": \"\",\n \"path\": \"\",\n \"port\": \"\",\n \"query_string\": \"\"\n },\n \"rt_push\": \"\",\n \"thread_number\": \"\",\n \"timeouts\": {\n \"timeout_a\": \"\",\n \"timeout_b\": \"\",\n \"timeout_c\": \"\"\n },\n \"description\": \"\",\n \"proxy\": {\n \"proxy_host\": \"\",\n \"proxy_port\": \"\",\n \"proxy_username\": \"\",\n \"proxy_password\": \"\"\n },\n \"service\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"service_nmp\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"serv_plugin\": \"\"\n }\n },\n \"configurations\": {\n \"dolore4\": {\n \"category\": \"\",\n \"key\": \"\",\n \"value\": \"\",\n \"description\": \"\"\n },\n \"eiusmod_a0\": {\n \"category\": \"\",\n \"key\": \"\",\n \"value\": \"\",\n \"description\": \"\"\n }\n },\n \"creditorInstitutionBrokers\": {\n \"veniam__\": {\n \"broker_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"enim_63\": {\n \"broker_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"enim_d\": {\n \"broker_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n }\n },\n \"creditorInstitutionEncodings\": {\n \"amet6b\": {\n \"code_type\": \"\",\n \"creditor_institution_code\": \"\",\n \"encoding_code\": \"\"\n },\n \"amet99d\": {\n \"code_type\": \"\",\n \"creditor_institution_code\": \"\",\n \"encoding_code\": \"\"\n },\n \"adipisicing_d20\": {\n \"code_type\": \"\",\n \"creditor_institution_code\": \"\",\n \"encoding_code\": \"\"\n }\n },\n \"creditorInstitutionInformations\": {\n \"adipisicing_cd\": {\n \"informativa\": \"\"\n },\n \"mollit34\": {\n \"informativa\": \"\"\n }\n },\n \"creditorInstitutionStations\": {\n \"culpa906\": {\n \"broadcast\": \"\",\n \"creditor_institution_code\": \"\",\n \"mod4\": \"\",\n \"primitive_version\": \"\",\n \"spontaneous_payment\": \"\",\n \"station_code\": \"\",\n \"application_code\": \"\",\n \"aux_digit\": \"\",\n \"segregation_code\": \"\"\n }\n },\n \"creditorInstitutions\": {\n \"quise60\": {\n \"creditor_institution_code\": \"\",\n \"enabled\": \"\",\n \"psp_payment\": \"\",\n \"reporting_ftp\": \"\",\n \"reporting_zip\": \"\",\n \"business_name\": \"\",\n \"description\": \"\",\n \"address\": {\n \"location\": \"\",\n \"city\": \"\",\n \"zip_code\": \"\",\n \"country_code\": \"\",\n \"tax_domicile\": \"\"\n }\n }\n },\n \"encodings\": {\n \"fugiatb3a\": {\n \"code_type\": \"\",\n \"description\": \"\"\n },\n \"minim_54c\": {\n \"code_type\": \"\",\n \"description\": \"\"\n },\n \"pariatur4\": {\n \"code_type\": \"\",\n \"description\": \"\"\n }\n },\n \"ftpServers\": {\n \"officia_0a\": {\n \"enabled\": \"\",\n \"history_path\": \"\",\n \"host\": \"\",\n \"id\": \"\",\n \"in_path\": \"\",\n \"out_path\": \"\",\n \"password\": \"\",\n \"port\": \"\",\n \"root_path\": \"\",\n \"service\": \"\",\n \"type\": \"\",\n \"username\": \"\"\n },\n \"enim_c47\": {\n \"enabled\": \"\",\n \"history_path\": \"\",\n \"host\": \"\",\n \"id\": \"\",\n \"in_path\": \"\",\n \"out_path\": \"\",\n \"password\": \"\",\n \"port\": \"\",\n \"root_path\": \"\",\n \"service\": \"\",\n \"type\": \"\",\n \"username\": \"\"\n }\n },\n \"gdeConfigurations\": {\n \"dolor_044\": {\n \"event_hub_enabled\": \"\",\n \"event_hub_payload_enabled\": \"\",\n \"primitive\": \"\",\n \"type\": \"\"\n }\n },\n \"ibans\": {\n \"enim_cb\": {\n \"creditor_institution_code\": \"\",\n \"iban\": \"\",\n \"publication_date\": \"\",\n \"validity_date\": \"\",\n \"shop_id\": \"\",\n \"seller_bank_id\": \"\",\n \"avvio_key\": \"\",\n \"esito_key\": \"\"\n }\n },\n \"languages\": {\n \"animfb9\": \"\",\n \"do_12a\": \"\"\n },\n \"metadataDict\": {\n \"labore5\": {\n \"key\": \"\",\n \"start_date\": \"\",\n \"description\": \"\",\n \"end_date\": \"\"\n }\n },\n \"paymentTypes\": {\n \"non__3\": {\n \"payment_type\": \"\",\n \"description\": \"\"\n },\n \"Excepteur_5\": {\n \"payment_type\": \"\",\n \"description\": \"\"\n }\n },\n \"plugins\": {\n \"nulla_00\": {\n \"id_serv_plugin\": \"\",\n \"pag_const_string_profile\": \"\",\n \"pag_soap_rule_profile\": \"\",\n \"pag_rpt_xpath_profile\": \"\",\n \"id_bean\": \"\"\n }\n },\n \"pspBrokers\": {\n \"nisi_b\": {\n \"broker_psp_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"voluptatefa0\": {\n \"broker_psp_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n },\n \"aliqua_09f\": {\n \"broker_psp_code\": \"\",\n \"enabled\": \"\",\n \"extended_fault_bean\": \"\",\n \"description\": \"\"\n }\n },\n \"pspChannelPaymentTypes\": {\n \"occaecatb\": {\n \"channel_code\": \"\",\n \"payment_type\": \"\",\n \"psp_code\": \"\"\n },\n \"eu_43\": {\n \"channel_code\": \"\",\n \"payment_type\": \"\",\n \"psp_code\": \"\"\n }\n },\n \"pspInformationTemplates\": {\n \"aute_7\": {\n \"informativa\": \"\"\n }\n },\n \"pspInformations\": {\n \"pariatur3_\": {\n \"informativa\": \"\"\n },\n \"sedc0\": {\n \"informativa\": \"\"\n }\n },\n \"psps\": {\n \"Lorem_b8\": {\n \"agid_psp\": \"\",\n \"digital_stamp\": \"\",\n \"enabled\": \"\",\n \"psp_code\": \"\",\n \"description\": \"\",\n \"business_name\": \"\",\n \"abi\": \"\",\n \"bic\": \"\",\n \"my_bank_code\": \"\",\n \"tax_code\": \"\",\n \"vat_number\": \"\"\n }\n },\n \"stations\": {\n \"deserunt_9e\": {\n \"broker_code\": \"\",\n \"connection\": {\n \"ip\": \"\",\n \"port\": \"\",\n \"protocol\": \"HTTPS\"\n },\n \"enabled\": \"\",\n \"invio_rt_istantaneo\": \"\",\n \"password\": \"\",\n \"primitive_version\": \"\",\n \"redirect\": {\n \"protocol\": \"HTTPS\",\n \"ip\": \"\",\n \"path\": \"\",\n \"port\": \"\",\n \"query_string\": \"\"\n },\n \"station_code\": \"\",\n \"thread_number\": \"\",\n \"timeouts\": {\n \"timeout_a\": \"\",\n \"timeout_b\": \"\",\n \"timeout_c\": \"\"\n },\n \"version\": \"\",\n \"connection_mod4\": {\n \"ip\": \"\",\n \"port\": \"\",\n \"protocol\": \"HTTPS\"\n },\n \"service\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"service_pof\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"service_mod4\": {\n \"path\": \"\",\n \"target_host\": \"\",\n \"target_port\": \"\",\n \"target_path\": \"\"\n },\n \"proxy\": {\n \"proxy_host\": \"\",\n \"proxy_port\": \"\",\n \"proxy_username\": \"\",\n \"proxy_password\": \"\"\n }\n }\n },\n \"version\": \"\"\n}" + }, + { + "name": "Bad Request", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Too many requests", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Too Many Requests", + "code": 429, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service unavailable", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1" + ], + "query": [ + { + "key": "refresh", + "value": "", + "description": "to force the refresh of the cache", + "disabled": true + }, + { + "key": "keys", + "value": "cdsSubjectServices", + "disabled": true + } + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + } + ] + } + ] + }, + { + "name": "FdrCache", + "item": [ + { + "name": "/stakeholders/fdr/cache/schemas/v1/id", + "request": { + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "key", + "value": "Ocp-Apim-Subscription-Key", + "type": "string" + }, + { + "key": "value", + "value": "{{apiKey}}", + "type": "string" + }, + { + "key": "in", + "value": "header", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"version\": \"\"\n}" + }, + { + "name": "Bad Request", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Not Found", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Not Found", + "code": 404, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Too many requests", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Too Many Requests", + "code": 429, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service unavailable", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/fdr/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "fdr", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + } + ] + }, + { + "name": "/stakeholders/node/cache/schemas/v1/id", + "request": { + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "key", + "value": "Ocp-Apim-Subscription-Key", + "type": "string" + }, + { + "key": "value", + "value": "{{apiKey}}", + "type": "string" + }, + { + "key": "in", + "value": "header", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"version\": \"\"\n}" + }, + { + "name": "Bad Request", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Not Found", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Not Found", + "code": 404, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Too many requests", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Too Many Requests", + "code": 429, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service unavailable", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/node/cache/schemas/v1/id", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "node", + "cache", + "schemas", + "v1", + "id" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + } + ] + } + ] + }, + { + "name": "VerifierCache", + "item": [ + { + "name": "/stakeholders/verifier/cache/schemas/v1", + "request": { + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "key", + "value": "Ocp-Apim-Subscription-Key", + "type": "string" + }, + { + "key": "value", + "value": "{{apiKey}}", + "type": "string" + }, + { + "key": "in", + "value": "header", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "" + }, + { + "name": "Bad Request", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Too many requests", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "status": "Too Many Requests", + "code": 429, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service unavailable", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "key": "X-Request-Id", + "value": "", + "disabled": true + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: apikey", + "key": "Ocp-Apim-Subscription-Key", + "value": "" + } + ], + "url": { + "raw": "{{baseUrl}}/stakeholders/verifier/cache/schemas/v1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "stakeholders", + "verifier", + "cache", + "schemas", + "v1" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-Request-Id", + "value": "", + "description": "This header identifies the call" + } + ], + "cookie": [], + "body": "{\n \"title\": \"\",\n \"status\": \"\",\n \"detail\": \"\"\n}" + } + ] + } + ] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "host", + "value": "api.dev.platform.pagopa.it", + "disabled": true + }, + { + "key": "basePath", + "value": "api-config-cache/o/v1" + }, + { + "key": "baseUrl", + "value": "{{host}}/{{basePath}}" + } + ] +} \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/config/OpenApiConfig.java b/src/main/java/it/gov/pagopa/apiconfig/cache/config/OpenApiConfig.java index bc9cc811..5d5413a2 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/cache/config/OpenApiConfig.java +++ b/src/main/java/it/gov/pagopa/apiconfig/cache/config/OpenApiConfig.java @@ -11,10 +11,12 @@ import io.swagger.v3.oas.models.parameters.Parameter; import io.swagger.v3.oas.models.responses.ApiResponses; import io.swagger.v3.oas.models.security.SecurityScheme; -import java.util.Collections; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; + +import java.util.*; + +import io.swagger.v3.oas.models.servers.Server; +import io.swagger.v3.oas.models.servers.ServerVariable; +import io.swagger.v3.oas.models.servers.ServerVariables; import org.springdoc.core.customizers.OpenApiCustomiser; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; @@ -29,6 +31,14 @@ public OpenAPI customOpenAPI( @Value("${info.application.description}") String appDescription, @Value("${info.application.version}") String appVersion) { return new OpenAPI() + .servers(List.of(new Server().url("http://localhost:8080"), + new Server().url("https://{host}/{basePath}") + .variables(new ServerVariables().addServerVariable("host", + new ServerVariable()._enum(List.of("api.dev.platform.pagopa.it","api.uat.platform.pagopa.it","api.platform.pagopa.it")) + ._default("api.dev.platform.pagopa.it")) + .addServerVariable("basePath", new ServerVariable()._enum(List.of("api-config-cache/o/v1", "api-config-cache/p/v1", "api-config-cache/odev/v1")) + ._default("api-config-cache/o/v1")) + ))) .components( new Components() .addSecuritySchemes( diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java b/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java index a91260f7..b7bc8286 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/cache/controller/CacheController.java @@ -1,6 +1,7 @@ package it.gov.pagopa.apiconfig.cache.controller; import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.ApiResponse; @@ -19,10 +20,13 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; @Slf4j +@RestController public abstract class CacheController { abstract String stakeholder(); @@ -82,7 +86,7 @@ private void loadCacheFromRedis() { value = "/v1", produces = {MediaType.APPLICATION_JSON_VALUE}) public ResponseEntity cache( - @RequestParam Optional refresh, @RequestParam Optional keys) + @RequestParam @Parameter(description = "to force the refresh of the cache") Optional refresh, @RequestParam @Parameter Optional keys) throws IOException { boolean cacheV1InProgress = configService.getCacheV1InProgress(stakeholder()); if (refresh.orElse(false) || cfgDataV1 == null) { diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/service/ConfigService.java b/src/main/java/it/gov/pagopa/apiconfig/cache/service/ConfigService.java index b7b8a6c2..7da8806a 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/cache/service/ConfigService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/cache/service/ConfigService.java @@ -181,7 +181,7 @@ public class ConfigService { private long IN_PROGRESS_TTL; @Autowired private JsonSerializer jsonSerializer; - @Autowired private PlatformTransactionManager transactionManager; +// @Autowired private PlatformTransactionManager transactionManager; @Autowired private RedisRepository redisRepository; @Autowired private CacheRepository cacheRepository; @Autowired private ConfigMapper modelMapper; diff --git a/src/test/java/it/gov/pagopa/apiconfig/cache/OpenApiGenerationTest.java b/src/test/java/it/gov/pagopa/apiconfig/cache/OpenApiGenerationTest.java new file mode 100644 index 00000000..34f9225f --- /dev/null +++ b/src/test/java/it/gov/pagopa/apiconfig/cache/OpenApiGenerationTest.java @@ -0,0 +1,89 @@ +package it.gov.pagopa.apiconfig.cache; + +import com.fasterxml.jackson.databind.ObjectMapper; +import it.gov.pagopa.apiconfig.cache.controller.FdrCacheController; +import it.gov.pagopa.apiconfig.cache.controller.HomeController; +import it.gov.pagopa.apiconfig.cache.controller.VerifierCacheController; +import it.gov.pagopa.apiconfig.cache.service.ConfigService; +import it.gov.pagopa.apiconfig.cache.service.HealthCheckService; +import it.gov.pagopa.apiconfig.cache.service.VerifierService; +import it.gov.pagopa.apiconfig.starter.repository.HealthCheckRepository; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.test.mock.mockito.MockBean; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; +import org.springframework.test.web.servlet.result.MockMvcResultMatchers; + +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; + +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; + +@SpringBootTest +@AutoConfigureMockMvc +class OpenApiGenerationTest { + + @Autowired + ObjectMapper objectMapper; + + @Autowired + private MockMvc mvc; + + @MockBean + FdrCacheController fdrCacheController; + + @MockBean + ConfigService configService; + + @MockBean + HomeController homeController; + + @MockBean + VerifierCacheController verifierCacheController; + + @MockBean + HealthCheckService healthCheckService; + + @MockBean + VerifierService verifierService; + + @MockBean + HealthCheckRepository healthCheckRepository; + + @Test + void swaggerSpringPlugin() throws Exception { + getSwagger("/v3/api-docs", "openapi.json"); + getSwagger("/v3/api-docs/nodev1", "openapi_nodev1.json"); + getSwagger("/v3/api-docs/verifierv1", "openapi_verifierv1.json"); + getSwagger("/v3/api-docs/fdrv1", "openapi_fdrv1.json"); + } + + private void getSwagger(String urlTemplate, String fileName) throws Exception { + mvc.perform(MockMvcRequestBuilders.get(urlTemplate).accept(MediaType.APPLICATION_JSON)) + .andExpect(MockMvcResultMatchers.status().is2xxSuccessful()) + .andDo( + (result) -> { + assertNotNull(result); + assertNotNull(result.getResponse()); + final String content = result.getResponse().getContentAsString(); + assertFalse(content.isBlank()); + assertFalse(content.contains("${"), "Generated swagger contains placeholders"); + Object swagger = + objectMapper.readValue(result.getResponse().getContentAsString(), Object.class); + String formatted = + objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(swagger); + Path basePath = Paths.get("openapi/"); + Files.createDirectories(basePath); + Files.write(basePath.resolve(fileName), formatted.getBytes()); + }); + } +} diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index 5366d63a..c2aad271 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -18,12 +18,12 @@ springdoc.api-docs.groups.enabled=true springdoc.group-configs[0].group=nodev1 springdoc.group-configs[0].displayName=Node-v1 springdoc.group-configs[0].paths-to-match=/stakeholders/node/cache/schemas/v1/** -springdoc.group-configs[1].group=verifier -springdoc.group-configs[1].displayName=Verificatore -springdoc.group-configs[1].paths-to-match=/stakeholders/verifier/cache/** -springdoc.group-configs[2].group=fdr -springdoc.group-configs[2].displayName=Fdr -springdoc.group-configs[2].paths-to-match=/stakeholders/fdr/cache/** +springdoc.group-configs[1].group=verifierv1 +springdoc.group-configs[1].displayName=Verificatore-v1 +springdoc.group-configs[1].paths-to-match=/stakeholders/verifier/cache/schemas/v1/** +springdoc.group-configs[2].group=fdrv1 +springdoc.group-configs[2].displayName=Fdr-v1 +springdoc.group-configs[2].paths-to-match=/stakeholders/fdr/cache/schemas/v1/** #DB spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration spring.jpa.show-sql=false @@ -45,4 +45,6 @@ logging.level.org.springframework.web.client.RestTemplate=OFF # CORS configuration cors.configuration=${CORS_CONFIGURATION:{"origins": ["*"], "methods": ["*"]}} spring.data.redis.repositories.enabled=false -canary=${CANARY:false} +saveDB:false +canary=false +in_progress.ttl=15