Skip to content

Commit

Permalink
feat: update openapi PAGOPA-2442
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoRuzzier committed Nov 28, 2024
1 parent 5ab939c commit bccd780
Showing 1 changed file with 53 additions and 133 deletions.
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

0 comments on commit bccd780

Please sign in to comment.