Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: update config cache host url and path PAGOPA-2442 (BLOCKED) #187

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopa-wisp-converter
description: A service that permits to handle nodoInviaRPT and nodoInviaCarrelloRPT request from WISP, interfacing them with GPD system
type: application
version: 0.288.0
appVersion: 1.0.2
version: 0.292.0
appVersion: 1.0.2-4-PAGOPA-2442
dependencies:
- name: microservice-chart
version: 3.0.0
Expand Down
2 changes: 1 addition & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart: &microservice-chart
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-wisp-converter
tag: "1.0.2"
tag: "1.0.2-4-PAGOPA-2442"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart: &microservice-chart
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-wisp-converter
tag: "1.0.2"
tag: "1.0.2-4-PAGOPA-2442"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart: &microservice-chart
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-wisp-converter
tag: "1.0.2"
tag: "1.0.2-4-PAGOPA-2442"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
186 changes: 53 additions & 133 deletions openapi-client/apiconfig-cache/openapi_cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title" : "API-Config Cache ${service}",
"description" : "Generate cache for various microservices",
"termsOfService" : "https://www.pagopa.gov.it/",
"version" : "0.8.20"
"version" : "0.9.20-7-PAGOPA-2362-schema-v1"
},
"servers" : [ {
"url" : "https://{host}/{basePath}",
Expand All @@ -14,49 +14,28 @@
"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" ]
"default" : "api-config-cache/p/v1",
"enum" : [ "api-config-cache/p/v1" ]
}
}
} ],
"paths" : {
"/cache" : {
"/stakeholders/wisp/cache/schemas/v1" : {
"get" : {
"tags" : [ "Cache" ],
"summary" : "Get in memory cache,full or only the supplied keys",
"operationId" : "get",
"summary" : "Get selected key of {stakeholder} cache v1 config",
"operationId" : "cache",
"parameters" : [ {
"name" : "keys",
"name" : "refresh",
"in" : "query",
"description" : "to force the refresh of the cache",
"required" : false,
"deprecated" : true,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
}
"type" : "boolean"
}
} ],
"responses" : {
"400" : {
"description" : "Bad Request",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"200" : {
"description" : "OK",
"content" : {
Expand All @@ -67,27 +46,6 @@
}
}
},
"401" : {
"description" : "Unauthorized"
},
"429" : {
"description" : "Too many requests"
},
"403" : {
"description" : "Forbidden"
}
},
"security" : [ {
"ApiKey" : [ ]
} ]
}
},
"/cache/xlsx" : {
"get" : {
"tags" : [ "Cache" ],
"summary" : "Get xlsx of full chache",
"operationId" : "xls",
"responses" : {
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -108,32 +66,26 @@
}
}
},
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"401" : {
"description" : "Unauthorized"
},
"429" : {
"description" : "Too many requests"
},
"403" : {
"description" : "Forbidden"
},
"429" : {
"description" : "Too many requests"
}
},
"security" : [ {
"ApiKey" : [ ]
} ]
}
},
"/cache/refresh" : {
"/stakeholders/wisp/cache/schemas/v1/xlsx" : {
"get" : {
"tags" : [ "Cache" ],
"summary" : "Refresh in memory full chache",
"operationId" : "refresh",
"summary" : "Get xlsx of last v1 {stakeholder} cache version",
"operationId" : "xls",
"responses" : {
"400" : {
"description" : "Bad Request",
Expand All @@ -158,70 +110,29 @@
"200" : {
"description" : "OK",
"content" : {
"application/json" : { }
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"401" : {
"description" : "Unauthorized"
},
"429" : {
"description" : "Too many requests"
},
"403" : {
"description" : "Forbidden"
}
},
"security" : [ {
"ApiKey" : [ ]
} ]
}
},
"/cache/keys" : {
"get" : {
"tags" : [ "Cache" ],
"summary" : "Get the list of available cache keys",
"operationId" : "getKeys",
"responses" : {
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"401" : {
"description" : "Unauthorized"
},
"429" : {
"description" : "Too many requests"
},
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"type" : "string"
}
}
}
},
"403" : {
"description" : "Forbidden"
}
},
"security" : [ {
"ApiKey" : [ ]
} ]
}
},
"/cache/id" : {
"/stakeholders/wisp/cache/schemas/v1/id" : {
"get" : {
"tags" : [ "Cache" ],
"summary" : "Get in memory full cache id",
"operationId" : "id",
"summary" : "Get last v1 {stakeholder} cache version",
"operationId" : "idV1",
"responses" : {
"400" : {
"description" : "Bad Request",
Expand Down Expand Up @@ -256,11 +167,14 @@
"401" : {
"description" : "Unauthorized"
},
"429" : {
"description" : "Too many requests"
"404" : {
"description" : "Not Found"
},
"403" : {
"description" : "Forbidden"
},
"429" : {
"description" : "Too many requests"
}
},
"security" : [ {
Expand All @@ -271,28 +185,6 @@
},
"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",
Expand Down Expand Up @@ -475,6 +367,9 @@
},
"flag_travaso" : {
"type" : "boolean"
},
"flag_standin" : {
"type" : "boolean"
}
}
},
Expand Down Expand Up @@ -1080,6 +975,9 @@
"primitive_version" : {
"type" : "integer",
"format" : "int32"
},
"flag_standin" : {
"type" : "boolean"
}
}
},
Expand Down Expand Up @@ -1138,6 +1036,28 @@
}
}
},
"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",
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openapi/openapi_redirect.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.1",
"info": {
"title": "WISP-Converter-redirect",
"version": "1.0.2"
"version": "1.0.2-4-PAGOPA-2442"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>it.gov.pagopa</groupId>
<artifactId>wisp-converter</artifactId>
<version>1.0.2</version>
<version>1.0.2-4-PAGOPA-2442</version>
<name>pagoPA WISP Converter</name>
<description>A service that permits to handle nodoInviaRPT and nodoInviaCarrelloRPT request from WISP, converting them in NMU payments.</description>

Expand Down
Loading
Loading