Skip to content

Commit

Permalink
Merge pull request #36 from pagopa/flag_travaso
Browse files Browse the repository at this point in the history
Flag travaso
  • Loading branch information
lorenzo-catalano authored Nov 7, 2023
2 parents b4ef8e6 + fa1c5ae commit c5aecd1
Show file tree
Hide file tree
Showing 8 changed files with 2,979 additions and 3,696 deletions.
2,719 changes: 1,224 additions & 1,495 deletions openapi/openapi.json

Large diffs are not rendered by default.

1,879 changes: 833 additions & 1,046 deletions openapi/openapi_fdrv1.json

Large diffs are not rendered by default.

1,879 changes: 833 additions & 1,046 deletions openapi/openapi_nodev1.json

Large diffs are not rendered by default.

177 changes: 81 additions & 96 deletions openapi/openapi_verifierv1.json
Original file line number Diff line number Diff line change
@@ -1,126 +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.8.1"
"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.8.1"
},
"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"
]
}
"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": {
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"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" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"type" : "string"
}
}
}
},
"429": {
"description": "Too many requests"
"403" : {
"description" : "Forbidden"
},
"500": {
"description": "Service unavailable",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
"400" : {
"description" : "Bad Request",
"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"
},
"401" : {
"description" : "Unauthorized"
},
"500" : {
"description" : "Service unavailable",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
}
},
"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"
}
}
}
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<properties>
<java.version>11</java.version>
<spring-version>2.7.7</spring-version>
<starter.version>1.13.1</starter.version>
<starter.version>1.15.0</starter.version>
<springdoc.version>1.6.11</springdoc.version>
<postgresql.version>42.5.4</postgresql.version>
<oracle.version>21.4.0.0</oracle.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private void loadCacheFromRedis() {
}

@Operation(
summary = "Get selected key of fdr v1 config",
summary = "Get selected key of cache v1 config",
security = {@SecurityRequirement(name = "ApiKey")},
tags = {
"Cache",
Expand Down Expand Up @@ -99,10 +99,10 @@ public ResponseEntity<ConfigDataV1> cache(
}

@Operation(
summary = "Get last fdr v1 cache version",
summary = "Get last v1 cache version",
security = {@SecurityRequirement(name = "ApiKey")},
tags = {
"FdrCache",
"Cache",
})
@ApiResponses(
value = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ public class Channel implements Serializable {
@JsonProperty(value = "primitive_version", required = true)
private Integer primitiveVersion;

@JsonProperty(value = "flag_psp_cp", required = true)
private Boolean flagPspCp;
@JsonProperty(value = "flag_travaso", required = true)
private Boolean flagTravaso;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package it.gov.pagopa.apiconfig.cache.util.mapper;

import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Connection;
import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Protocol;
import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Proxy;
import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Redirect;
import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Service;
import it.gov.pagopa.apiconfig.cache.model.node.v1.common.Timeouts;
import it.gov.pagopa.apiconfig.cache.model.node.v1.common.*;
import it.gov.pagopa.apiconfig.cache.model.node.v1.psp.Channel;
import it.gov.pagopa.apiconfig.starter.entity.CanaliView;
import org.modelmapper.Converter;
Expand Down Expand Up @@ -77,7 +72,7 @@ public Channel convert(MappingContext<CanaliView, Channel> context) {
.agid(source.getAgidChannel())
.primitiveVersion(source.getVersionePrimitive())
.flagIo(source.getFlagIo())
.flagPspCp(source.getFlagPspCp())
.flagTravaso(source.getFlagTravaso())
.servPlugin(source.getIdServPlugin())
.build();
}
Expand Down

0 comments on commit c5aecd1

Please sign in to comment.