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",