From 82ccc3c778a44f5e0a6f94f6da4e9e9a38566278 Mon Sep 17 00:00:00 2001 From: selfcare-github-bot <146744076+selfcare-github-bot@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:19:44 +0200 Subject: [PATCH] [Update OpenAPI] Merge openapi prod using openapi-merge-cli (#414) Co-authored-by: empassaro <113031808+empassaro@users.noreply.github.com> --- .../pnpg_support_service/v1/openapi.prod.json | 213 ++++++++++++++++++ 1 file changed, 213 insertions(+) diff --git a/infra/apim_v2/api_pnpg/pnpg_support_service/v1/openapi.prod.json b/infra/apim_v2/api_pnpg/pnpg_support_service/v1/openapi.prod.json index 5a17be9e..42d02f85 100644 --- a/infra/apim_v2/api_pnpg/pnpg_support_service/v1/openapi.prod.json +++ b/infra/apim_v2/api_pnpg/pnpg_support_service/v1/openapi.prod.json @@ -22,6 +22,10 @@ { "name": "UserGroup", "description": "User group endpoint CRUD operations" + }, + { + "name": "infocamere", + "description": "Info Camere Controller" } ], "paths": { @@ -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": [ @@ -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",