From 970bc157fac92a613bc84c7113b845225b2d92f4 Mon Sep 17 00:00:00 2001 From: gianmarcoplutino <119858159+gianmarcoplutino@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:43:25 +0000 Subject: [PATCH] Update openapi --- .../api/ms_internal_api/v1/openapi.dev.json | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/infra/apim_v2/api/ms_internal_api/v1/openapi.dev.json b/infra/apim_v2/api/ms_internal_api/v1/openapi.dev.json index 019f3513..fa462936 100644 --- a/infra/apim_v2/api/ms_internal_api/v1/openapi.dev.json +++ b/infra/apim_v2/api/ms_internal_api/v1/openapi.dev.json @@ -26,6 +26,10 @@ { "name": "Delegation", "description": "Delegation Controller" + }, + { + "name": "infocamere-pdnd", + "description": "PDND Info Camere Controller" } ], "paths": { @@ -339,6 +343,87 @@ ] } }, + "/infocamere-pdnd/institution/{taxCode}": { + "get": { + "tags": [ + "infocamere-pdnd" + ], + "summary": "Get institution by institution taxCode", + "description": "Get the company represented by taxCode of the institution passed as a parameter", + "operationId": "institutionPdndByTaxCodeUsingGET", + "parameters": [ + { + "name": "taxCode", + "in": "path", + "description": "Institution fiscal code", + "required": true, + "style": "simple", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PDNDBusinessResource" + } + } + } + }, + "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" + ] + } + ] + } + }, "/institutions/{institutionId}/users": { "get": { "tags": [ @@ -1275,6 +1360,48 @@ ], "type": "string" }, + "PDNDBusinessResource": { + "title": "PDNDBusinessResource", + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "businessName": { + "type": "string" + }, + "businessStatus": { + "type": "string" + }, + "businessTaxId": { + "type": "string" + }, + "cciaa": { + "type": "string" + }, + "city": { + "type": "string" + }, + "county": { + "type": "string" + }, + "digitalAddress": { + "type": "string" + }, + "legalNature": { + "type": "string" + }, + "legalNatureDescription": { + "type": "string" + }, + "nrea": { + "type": "string" + }, + "zipCode": { + "type": "string" + } + } + }, "UserResource": { "title": "UserResource", "required": [