Skip to content

Commit

Permalink
[Update OpenAPI] Merge openapi prod using openapi-merge-cli (#414)
Browse files Browse the repository at this point in the history
Co-authored-by: empassaro <[email protected]>
  • Loading branch information
selfcare-github-bot and empassaro authored Oct 9, 2024
1 parent dfd735d commit 82ccc3c
Showing 1 changed file with 213 additions and 0 deletions.
213 changes: 213 additions & 0 deletions infra/apim_v2/api_pnpg/pnpg_support_service/v1/openapi.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
{
"name": "UserGroup",
"description": "User group endpoint CRUD operations"
},
{
"name": "infocamere",
"description": "Info Camere Controller"
}
],
"paths": {
Expand Down Expand Up @@ -291,6 +295,155 @@
]
}
},
"/info-camere/institutions": {
"post": {
"tags": [
"infocamere"
],
"summary": "Get institutions by legal tax id",
"description": "Get the list of companies represented by the tax code of the person (physical or juridical) passed as a parameter",
"operationId": "institutionsByLegalTaxIdUsingPOST",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetInstitutionsByLegalDto"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BusinessesResource"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}
},
"security": [
{
"bearerAuth": [
"global"
]
}
]
}
},
"/national-registries/legal-address": {
"get": {
"tags": [
"national-registries"
],
"summary": "Retrieve data from AdE and InfoCamere",
"description": "Get the legal address of the business",
"operationId": "legalAddressUsingGET",
"parameters": [
{
"name": "taxId",
"in": "query",
"description": "taxId",
"required": true,
"style": "form",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LegalAddressResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}
},
"security": [
{
"bearerAuth": [
"global"
]
}
]
}
},
"/national-registries/legal-tax/verification": {
"post": {
"tags": [
Expand Down Expand Up @@ -1072,6 +1225,66 @@
}
}
},
"BusinessesResource": {
"title": "BusinessesResource",
"type": "object",
"properties": {
"businesses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BusinessResource"
}
},
"legalTaxId": {
"type": "string"
},
"requestDateTime": {
"type": "string"
}
}
},
"BusinessResource": {
"title": "BusinessResource",
"type": "object",
"properties": {
"businessName": {
"type": "string"
},
"businessTaxId": {
"type": "string"
}
}
},
"GetInstitutionsByLegalDto": {
"title": "GetInstitutionsByLegalDto",
"type": "object",
"properties": {
"filter": {
"$ref": "#/components/schemas/GetInstitutionsByLegalFilterDto"
}
}
},
"GetInstitutionsByLegalFilterDto": {
"title": "GetInstitutionsByLegalFilterDto",
"type": "object",
"properties": {
"legalTaxId": {
"type": "string"
}
}
},
"LegalAddressResponse": {
"title": "LegalAddressResponse",
"type": "object",
"properties": {
"address": {
"type": "string"
},
"zipCode": {
"type": "string"
}
}
},
"LegalVerificationResource": {
"title": "LegalVerificationResource",
"type": "object",
Expand Down

0 comments on commit 82ccc3c

Please sign in to comment.