From 8cfbc0054d92a1307e9c5ba2548a61bae0a46081 Mon Sep 17 00:00:00 2001 From: selfcare-github-bot <146744076+selfcare-github-bot@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:46:58 +0200 Subject: [PATCH] [Update OpenAPI] Merge openapi prod using openapi-merge-cli (#376) Co-authored-by: manuraf <12083207+manuraf@users.noreply.github.com> --- .../pnpg_support_service/v1/openapi.prod.json | 126 ++++++++++++++++++ 1 file changed, 126 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 69827832..ef020921 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 @@ -197,6 +197,98 @@ ] } }, + "/users/{id}": { + "get": { + "tags": [ + "User" + ], + "summary": "Retrieves user given userId and optional ProductId", + "operationId": "getUserInfoUsingGET", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "institutionId", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "productId", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/Problem1" + } + } + } + }, + "401": { + "description": "Not Authorized", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/Problem1" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/Problem1" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/Problem1" + } + } + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ] + } + }, "/national-registries/legal-tax/verification": { "post": { "tags": [ @@ -956,6 +1048,40 @@ } } }, + "UserResponse": { + "required": [ + "id", + "name", + "surname" + ], + "type": "object", + "properties": { + "id": { + "minLength": 1, + "type": "string" + }, + "taxCode": { + "type": "string" + }, + "name": { + "pattern": "\\S", + "type": "string" + }, + "surname": { + "pattern": "\\S", + "type": "string" + }, + "email": { + "type": "string" + }, + "workContacts": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, "LegalVerificationResource": { "title": "LegalVerificationResource", "type": "object",