From 7ce0b56eeca9e0906584d575323fe77693b72a83 Mon Sep 17 00:00:00 2001 From: OraldoDoci <117348307+OraldoDoci@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:14:01 +0200 Subject: [PATCH] [SELC-4629] Fix: hide BO button for not authorized products --- .devops/deploy-pipelines.yml | 5 + .env.development.local | 1 + .env.test.local | 1 + openApi/dashboard-api-docs.json | 10222 +++++++++------- .../dashboard-swagger20.json | 1856 ++- src/api/DashboardApiClient.ts | 20 + src/locale/it.ts | 2 +- .../components/ActiveProductCardContainer.tsx | 7 +- src/services/partyService.ts | 11 + src/services/tokenExchangeService.ts | 4 + src/utils/env.ts | 4 + 11 files changed, 7212 insertions(+), 4921 deletions(-) diff --git a/.devops/deploy-pipelines.yml b/.devops/deploy-pipelines.yml index 49bbac7f..e3fdda8f 100644 --- a/.devops/deploy-pipelines.yml +++ b/.devops/deploy-pipelines.yml @@ -48,6 +48,7 @@ variables: react_app_url_api_dashboard: '$(UAT_REACT_APP_URL_API_DASHBOARD)' react_app_enable_assistance: 'true' + react_app_enable_user_v2: '$(UAT_REACT_APP_ENABLE_USER_V2)' react_app_url_storage: '$(UAT_REACT_APP_URL_STORAGE)' @@ -86,7 +87,9 @@ variables: react_app_url_api_party_registry_proxy: '$(PROD_REACT_APP_URL_API_PARTY_REGISTRY_PROXY)' react_app_url_api_dashboard: '$(PROD_REACT_APP_URL_API_DASHBOARD)' + react_app_enable_assistance: 'true' + react_app_enable_user_v2: '$(PROD_REACT_APP_ENABLE_USER_V2)' react_app_url_storage: '$(PROD_REACT_APP_URL_STORAGE)' @@ -128,6 +131,7 @@ variables: react_app_url_api_dashboard: '$(DEV_REACT_APP_URL_API_DASHBOARD)' react_app_enable_assistance: 'true' + react_app_enable_user_v2: '$(DEV_REACT_APP_ENABLE_USER_V2)' react_app_url_storage: '$(DEV_REACT_APP_URL_STORAGE)' @@ -241,6 +245,7 @@ stages: REACT_APP_URL_INSTITUTION_LOGO_PREFIX: '$(react_app_url_storage)/institutions/' + REACT_APP_ENABLE_USER_V2": '$(react_app_enable_user_v2)' REACT_APP_ANALYTICS_ENABLE: '$(react_app_analytics_enabled)' REACT_APP_ENABLE_GEOTAXONOMY: '$(react_app_enable_geotaxonomy)' REACT_APP_ANALYTICS_MOCK: '$(react_app_analytics_mocked)' diff --git a/.env.development.local b/.env.development.local index 733a8c63..d03af10d 100644 --- a/.env.development.local +++ b/.env.development.local @@ -20,6 +20,7 @@ REACT_APP_URL_INSTITUTION_LOGO_PREFIX=https://selcdcheckoutsa.z6.web.core.window REACT_APP_API_MOCK_PARTIES=true REACT_APP_API_MOCK_PRODUCTS=true +REACT_APP_ENABLE_USER_V2=false REACT_APP_ONE_TRUST_BASE_URL=https://cdn.cookielaw.org REACT_APP_ANALYTICS_ENABLE=true diff --git a/.env.test.local b/.env.test.local index 86c0b224..1db3e0d4 100644 --- a/.env.test.local +++ b/.env.test.local @@ -14,6 +14,7 @@ REACT_APP_URL_INSTITUTION_LOGO_PREFIX=http://checkout.selfcare/institutions/ REACT_APP_API_MOCK_PARTIES=false REACT_APP_API_MOCK_PRODUCTS=false +REACT_APP_ENABLE_USER_V2=false REACT_APP_ENABLE_GEOTAXONOMY=true diff --git a/openApi/dashboard-api-docs.json b/openApi/dashboard-api-docs.json index f9652e5c..d1ad2f6c 100644 --- a/openApi/dashboard-api-docs.json +++ b/openApi/dashboard-api-docs.json @@ -1,5932 +1,6836 @@ { - "openapi": "3.0.3", - "info": { - "title": "selc-dashboard", - "description": "Self Care Dashboard API documentation", - "version": "0.0.1-SNAPSHOT" + "openapi" : "3.0.3", + "info" : { + "title" : "selc-dashboard", + "description" : "Self Care Dashboard API documentation", + "version" : "0.0.1-SNAPSHOT" }, - "servers": [ - { - "url": "{url}:{port}{basePath}", - "variables": { - "url": { - "default": "http://localhost" - }, - "port": { - "default": "80" - }, - "basePath": { - "default": "" - } + "servers" : [ { + "url" : "{url}:{port}{basePath}", + "variables" : { + "url" : { + "default" : "http://localhost" + }, + "port" : { + "default" : "80" + }, + "basePath" : { + "default" : "" } } - ], - "tags": [ - { - "name": "delegations", - "description": "Delegation Controller" - }, - { - "name": "institutions", - "description": "Institution operations" - }, - { - "name": "onboarding", - "description": "Onboarding operations" - }, - { - "name": "pnPGInstitutions", - "description": "PN PG Institution operations" - }, - { - "name": "products", - "description": "Products operations" - }, - { - "name": "relationships", - "description": "Relationships operations" - }, - { - "name": "support", - "description": "Support Controller" - }, - { - "name": "token", - "description": "Token operations" - }, - { - "name": "user", - "description": "User Controller" - }, - { - "name": "user-groups", - "description": "UserGroups operations" - } - ], - "paths": { - "/v1/delegations": { - "post": { - "tags": [ - "delegations" - ], - "summary": "createDelegation", - "description": "Service to create association between institution and technical partner", - "operationId": "createDelegationUsingPOST", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DelegationRequestDto" + } ], + "tags" : [ { + "name" : "delegations", + "description" : "Delegation Controller" + }, { + "name" : "institutions", + "description" : "Institution operations" + }, { + "name" : "onboarding", + "description" : "Onboarding operations" + }, { + "name" : "pnPGInstitutions", + "description" : "PN PG Institution operations" + }, { + "name" : "products", + "description" : "Products operations" + }, { + "name" : "relationships", + "description" : "Relationships operations" + }, { + "name" : "support", + "description" : "Support Controller" + }, { + "name" : "token", + "description" : "Token operations" + }, { + "name" : "user", + "description" : "User V 2 Controller" + }, { + "name" : "user-groups", + "description" : "UserGroups operations" + } ], + "paths" : { + "/v1/delegations" : { + "post" : { + "tags" : [ "delegations" ], + "summary" : "createDelegation", + "description" : "Service to create association between institution and technical partner", + "operationId" : "createDelegationUsingPOST", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DelegationRequestDto" } } } }, - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DelegationIdResource" + "responses" : { + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DelegationIdResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "401" : { + "description" : "Unauthorized", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "409": { - "description": "Conflict" + "409" : { + "description" : "Conflict" }, - "500": { - "description": "Internal Server Error", - "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" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitutions", - "description": "Service to get all the institutions related to logged user", - "operationId": "getInstitutionsUsingGET", - "parameters": [ - { - "name": "authenticated", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "boolean" - } - }, - { - "name": "authorities[0].authority", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - }, - { - "name": "credentials", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - }, - { - "name": "details", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - }, - { - "name": "principal", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InstitutionBaseResource" + "/v1/institutions" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutions", + "description" : "Service to get all the institutions related to logged user", + "operationId" : "getInstitutionsUsingGET", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/InstitutionBaseResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/products": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getProductsTree", - "description": "Service to get all the products related to a specific institution", - "operationId": "getProductsTreeUsingGET", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductsResource" + "/v1/institutions/products" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getProductsTree", + "description" : "Service to get all the products related to a specific institution", + "operationId" : "getProductsTreeUsingGET", + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProductsResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitution", - "description": "Service to get a specific institution related to logged user", - "operationId": "getInstitutionUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v1/institutions/{institutionId}" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitution", + "description" : "Service to get a specific institution related to logged user", + "operationId" : "getInstitutionUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InstitutionResource" + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InstitutionResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] }, - "put": { - "tags": [ - "institutions" - ], - "summary": "updateInstitutionDescription", - "description": "Update institution description", - "operationId": "updateInstitutionDescriptionUsingPUT", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateInstitutionDto" + "put" : { + "tags" : [ "institutions" ], + "summary" : "updateInstitutionDescription", + "description" : "Update institution description", + "operationId" : "updateInstitutionDescriptionUsingPUT", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateInstitutionDto" } } } }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Institution" + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Institution" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/geographicTaxonomy": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitutionGeographicTaxonomy", - "description": "The service retrieve the institution's geographic taxonomy", - "operationId": "getInstitutionGeographicTaxonomyUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeographicTaxonomyResource" + "/v1/institutions/{institutionId}/geographicTaxonomy" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutionGeographicTaxonomy", + "description" : "The service retrieve the institution's geographic taxonomy", + "operationId" : "getInstitutionGeographicTaxonomyUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GeographicTaxonomyResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] }, - "put": { - "tags": [ - "institutions" - ], - "summary": "updateInstitutionGeographicTaxonomy", - "description": "Service to update the geographic taxonomy of an onboarded institution", - "operationId": "updateInstitutionGeographicTaxonomyUsingPUT", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GeographicTaxonomyListDto" + "put" : { + "tags" : [ "institutions" ], + "summary" : "updateInstitutionGeographicTaxonomy", + "description" : "Service to update the geographic taxonomy of an onboarded institution", + "operationId" : "updateInstitutionGeographicTaxonomyUsingPUT", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GeographicTaxonomyListDto" } } } }, - "responses": { - "200": { - "description": "OK" + "responses" : { + "200" : { + "description" : "OK" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/institutions": { - "get": { - "tags": [ - "institutions" - ], - "summary": "Retrieve list of delegation using to", - "description": "Retrieve list of delegation using to", - "operationId": "getDelegationsUsingToUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Technical partner's identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "productId", - "in": "query", - "description": "Product's identifier", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DelegationResource" + "/v1/institutions/{institutionId}/institutions" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "Retrieve list of delegation using to", + "description" : "Retrieve list of delegation using to", + "operationId" : "getDelegationsUsingToUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Technical partner's identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "Product's identifier", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/DelegationResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/logo": { - "put": { - "tags": [ - "institutions" - ], - "summary": "saveInstitutionLogo", - "description": "Service to upload and store the institution's logo", - "operationId": "saveInstitutionLogoUsingPUT", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "logo" - ], - "type": "object", - "properties": { - "logo": { - "type": "string", - "description": "Institution's logo", - "format": "binary" + "/v1/institutions/{institutionId}/logo" : { + "put" : { + "tags" : [ "institutions" ], + "summary" : "saveInstitutionLogo", + "description" : "Service to upload and store the institution's logo", + "operationId" : "saveInstitutionLogoUsingPUT", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "logo" ], + "type" : "object", + "properties" : { + "logo" : { + "type" : "string", + "description" : "Institution's logo", + "format" : "binary" } } } } } }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object" + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "object" } }, - "multipart/form-data": { - "schema": { - "type": "object" + "multipart/form-data" : { + "schema" : { + "type" : "object" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/partners": { - "get": { - "tags": [ - "institutions" - ], - "summary": "Retrieve institution's delegations", - "description": "Retrieve institution's delegations", - "operationId": "getDelegationsUsingFromUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "productId", - "in": "query", - "description": "Product's identifier", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DelegationResource" + "/v1/institutions/{institutionId}/partners" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "Retrieve institution's delegations", + "description" : "Retrieve institution's delegations", + "operationId" : "getDelegationsUsingFromUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "Product's identifier", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/DelegationResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/products": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitutionProducts", - "description": "Service to get all the products related to a specific institution", - "operationId": "getInstitutionProductsUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductsResource" + "/v1/institutions/{institutionId}/products/{productId}/users" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutionProductUsers", + "description" : "Service to get all the users related to a specific pair of institution-product", + "operationId" : "getInstitutionProductUsersUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "role", + "in" : "query", + "description" : "User's role", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string", + "enum" : [ "ADMIN", "LIMITED" ] + } + }, { + "name" : "productRoles", + "in" : "query", + "description" : "User's roles in product", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProductUserResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "deprecated": true, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] - } - }, - "/v1/institutions/{institutionId}/products/{productId}/users": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitutionProductUsers", - "description": "Service to get all the users related to a specific pair of institution-product", - "operationId": "getInstitutionProductUsersUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "productId", - "in": "path", - "description": "Product's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "role", - "in": "query", - "description": "User's role", - "required": false, - "style": "form", - "schema": { - "type": "string", - "enum": [ - "ADMIN", - "LIMITED" - ] - } - }, - { - "name": "productRoles", - "in": "query", - "description": "User's roles in product", - "required": false, - "style": "form", - "explode": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductUserResource" - } - } + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + }, + "post" : { + "tags" : [ "institutions" ], + "summary" : "createInstitutionProductUser", + "description" : "Service to Create a user related to a specific pair of institution-product", + "operationId" : "createInstitutionProductUserUsingPOST", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateUserDto" } } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + } + }, + "responses" : { + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserIdResource" } } } }, - "401": { - "description": "Unauthorized", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "404": { - "description": "Not Found", - "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/institutions/{institutionId}/products/{productId}/users/{userId}" : { + "put" : { + "tags" : [ "institutions" ], + "summary" : "addUserProductRoles", + "description" : "Service to add a new role/product to a specific user", + "operationId" : "addUserProductRolesUsingPUT", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserProductRoles" + } + } } - ] - }, - "post": { - "tags": [ - "institutions" - ], - "summary": "createInstitutionProductUser", - "description": "Service to Create a user related to a specific pair of institution-product", - "operationId": "createInstitutionProductUserUsingPOST", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "productId", - "in": "path", - "description": "Product's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateUserDto" + }, + "responses" : { + "201" : { + "description" : "Created" + }, + "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" + } } } } }, - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserIdResource" + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/institutions/{institutionId}/users" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutionUsers", + "description" : "Service to get all the users related to a specific institution", + "operationId" : "getInstitutionUsersUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "Product's unique identifier", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "role", + "in" : "query", + "description" : "User's role", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string", + "enum" : [ "ADMIN", "LIMITED" ] + } + }, { + "name" : "productRoles", + "in" : "query", + "description" : "User's roles in product", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/InstitutionUserResource" + } + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "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" } } } }, - "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "deprecated" : true, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/products/{productId}/users/{userId}": { - "put": { - "tags": [ - "institutions" - ], - "summary": "addUserProductRoles", - "description": "Service to add a new role/product to a specific user", - "operationId": "addUserProductRolesUsingPUT", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "productId", - "in": "path", - "description": "Product's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserProductRoles" + "/v1/institutions/{institutionId}/users/{userId}" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutionUser", + "description" : "Service to get the users with the given user id related to a specific institution", + "operationId" : "getInstitutionUserUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InstitutionUserDetailsResource" + } } } - } - }, - "responses": { - "201": { - "description": "Created" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/users": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitutionUsers", - "description": "Service to get all the users related to a specific institution", - "operationId": "getInstitutionUsersUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "productId", - "in": "query", - "description": "Product's unique identifier", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - }, - { - "name": "role", - "in": "query", - "description": "User's role", - "required": false, - "style": "form", - "schema": { - "type": "string", - "enum": [ - "ADMIN", - "LIMITED" - ] - } - }, - { - "name": "productRoles", - "in": "query", - "description": "User's roles in product", - "required": false, - "style": "form", - "explode": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InstitutionUserResource" + "/v2/institutions" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutions", + "description" : "Service to get all the institutions related to logged user", + "operationId" : "getInstitutionsUsingGET_1", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/InstitutionBaseResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "deprecated": true, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/institutions/{institutionId}/users/{userId}": { - "get": { - "tags": [ - "institutions" - ], - "summary": "getInstitutionUser", - "description": "Service to get the users with the given user id related to a specific institution", - "operationId": "getInstitutionUserUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v2/institutions/{institutionId}" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitution", + "description" : "Service to get a specific institution related to logged user", + "operationId" : "getInstitutionUsingGET_1", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InstitutionUserDetailsResource" + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InstitutionResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/onboarding-requests/approve/{tokenId}": { - "post": { - "tags": [ - "onboarding" - ], - "summary": "approveOnboardingRequest", - "description": "Service to approve a specific onboarding request", - "operationId": "approveOnboardingRequestUsingPOST", - "parameters": [ - { - "name": "tokenId", - "in": "path", - "description": "Onboarding request's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" + "/v2/institutions/{institutionId}/users/{userId}" : { + "get" : { + "tags" : [ "institutions" ], + "summary" : "getInstitutionUser", + "description" : "Service to get the users with the given user id related to a specific institution", + "operationId" : "getInstitutionUserUsingGET_1", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InstitutionUserDetailsResource" + } + } + } + }, + "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" + } + } } } - ], - "responses": { - "200": { - "description": "OK" + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/onboarding-requests/approve/{tokenId}" : { + "post" : { + "tags" : [ "onboarding" ], + "summary" : "approveOnboardingRequest", + "description" : "Service to approve a specific onboarding request", + "operationId" : "approveOnboardingRequestUsingPOST", + "parameters" : [ { + "name" : "tokenId", + "in" : "path", + "description" : "Onboarding request's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" + } + } ], + "responses" : { + "200" : { + "description" : "OK" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/onboarding-requests/reject/{tokenId}": { - "delete": { - "tags": [ - "onboarding" - ], - "summary": "rejectOnboardingRequest", - "description": "Service to reject a specific onboarding request", - "operationId": "rejectOnboardingRequestUsingDELETE", - "parameters": [ - { - "name": "tokenId", - "in": "path", - "description": "Onboarding request's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" - } + "/v1/onboarding-requests/reject/{tokenId}" : { + "delete" : { + "tags" : [ "onboarding" ], + "summary" : "rejectOnboardingRequest", + "description" : "Service to reject a specific onboarding request", + "operationId" : "rejectOnboardingRequestUsingDELETE", + "parameters" : [ { + "name" : "tokenId", + "in" : "path", + "description" : "Onboarding request's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" } - ], - "responses": { - "200": { - "description": "OK" + } ], + "responses" : { + "200" : { + "description" : "OK" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/onboarding-requests/{tokenId}": { - "get": { - "tags": [ - "onboarding" - ], - "summary": "retrieveOnboardingRequest", - "description": "Service to retrieve a specific onboarding request", - "operationId": "retrieveOnboardingRequestUsingGET", - "parameters": [ - { - "name": "tokenId", - "in": "path", - "description": "Onboarding request's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" - } + "/v1/onboarding-requests/{tokenId}" : { + "get" : { + "tags" : [ "onboarding" ], + "summary" : "retrieveOnboardingRequest", + "description" : "Service to retrieve a specific onboarding request", + "operationId" : "retrieveOnboardingRequestUsingGET", + "parameters" : [ { + "name" : "tokenId", + "in" : "path", + "description" : "Onboarding request's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OnboardingRequestResource" + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/OnboardingRequestResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/pnPGInstitutions/{institutionId}/products": { - "get": { - "tags": [ - "pnPGInstitutions" - ], - "summary": "getPnPGInstitutionProducts", - "description": "Service to get all the products related to a specific institution", - "operationId": "getPnPGInstitutionProductsUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "path", - "description": "Institution's unique internal identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PartyProduct" + "/v1/pnPGInstitutions/{institutionId}/products" : { + "get" : { + "tags" : [ "pnPGInstitutions" ], + "summary" : "getPnPGInstitutionProducts", + "description" : "Service to get all the products related to a specific institution", + "operationId" : "getPnPGInstitutionProductsUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PartyProduct" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/products/{productId}/back-office": { - "get": { - "tags": [ - "products" - ], - "summary": "retrieveProductBackoffice", - "description": "Service to trigger token exchange and redirect to product's back office URL", - "operationId": "retrieveProductBackofficeUsingGET", - "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Product's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" + "/v1/products/{productId}/back-office" : { + "get" : { + "tags" : [ "products" ], + "summary" : "retrieveProductBackoffice", + "description" : "Service to trigger token exchange and redirect to product's back office URL", + "operationId" : "retrieveProductBackofficeUsingGET", + "parameters" : [ { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "environment", + "in" : "query", + "description" : "Back Office environment", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "uri" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } }, - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } }, - { - "name": "environment", - "in": "query", - "description": "Back Office environment", - "required": false, - "style": "form", - "schema": { - "type": "string" + "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" + } + } } } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "uri" + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/products/{productId}/brokers/{institutionType}" : { + "get" : { + "tags" : [ "products" ], + "summary" : "getProductBrokers", + "description" : "Service to get list of partners", + "operationId" : "getProductBrokersUsingGET", + "parameters" : [ { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionType", + "in" : "path", + "description" : "Institution Type", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BrokerResource" + } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/products/{productId}/brokers/{institutionType}": { - "get": { - "tags": [ - "products" - ], - "summary": "getProductBrokers", - "description": "Service to get list of partners", - "operationId": "getProductBrokersUsingGET", - "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Product's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "institutionType", - "in": "path", - "description": "Institution Type", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "enum": [ - "AS", - "CON", - "GSP", - "PA", - "PG", - "PSP", - "PT", - "REC", - "SA", - "SCP" - ] - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BrokerResource" + "/v1/products/{productId}/roles" : { + "get" : { + "tags" : [ "products" ], + "summary" : "getProductRoles", + "description" : "Service to get the Product roles", + "operationId" : "getProductRolesUsingGET", + "parameters" : [ { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProductRoleMappingsResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/products/{productId}/roles": { - "get": { - "tags": [ - "products" - ], - "summary": "getProductRoles", - "description": "Service to get the Product roles", - "operationId": "getProductRolesUsingGET", - "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Product's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductRoleMappingsResource" - } + "/v2/products/{productId}/back-office" : { + "get" : { + "tags" : [ "products" ], + "summary" : "retrieveProductBackoffice", + "description" : "Service to trigger token exchange and redirect to product's back office URL", + "operationId" : "retrieveProductBackofficeUsingGET_1", + "parameters" : [ { + "name" : "productId", + "in" : "path", + "description" : "Product's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "environment", + "in" : "query", + "description" : "Back Office environment", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "uri" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/relationships/{relationshipId}": { - "delete": { - "tags": [ - "relationships" - ], - "summary": "deleteRelationshipById", - "description": "Delete the relationship", - "operationId": "deleteRelationshipByIdUsingDELETE", - "parameters": [ - { - "name": "relationshipId", - "in": "path", - "description": "Unique relationship identifier between User and Product", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v1/relationships/{relationshipId}" : { + "delete" : { + "tags" : [ "relationships" ], + "summary" : "deleteRelationshipById", + "description" : "Delete the relationship", + "operationId" : "deleteRelationshipByIdUsingDELETE", + "parameters" : [ { + "name" : "relationshipId", + "in" : "path", + "description" : "Unique relationship identifier between User and Product", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/relationships/{relationshipId}/activate": { - "post": { - "tags": [ - "relationships" - ], - "summary": "activateRelationship", - "description": "Activate the relationship", - "operationId": "activateRelationshipUsingPOST", - "parameters": [ - { - "name": "relationshipId", - "in": "path", - "description": "Unique relationship identifier between User and Product", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v1/relationships/{relationshipId}/activate" : { + "post" : { + "tags" : [ "relationships" ], + "summary" : "activateRelationship", + "description" : "Activate the relationship", + "operationId" : "activateRelationshipUsingPOST", + "parameters" : [ { + "name" : "relationshipId", + "in" : "path", + "description" : "Unique relationship identifier between User and Product", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/relationships/{relationshipId}/suspend": { - "post": { - "tags": [ - "relationships" - ], - "summary": "suspendRelationship", - "description": "Suspend the relationship", - "operationId": "suspendRelationshipUsingPOST", - "parameters": [ - { - "name": "relationshipId", - "in": "path", - "description": "Unique relationship identifier between User and Product", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v1/relationships/{relationshipId}/suspend" : { + "post" : { + "tags" : [ "relationships" ], + "summary" : "suspendRelationship", + "description" : "Suspend the relationship", + "operationId" : "suspendRelationshipUsingPOST", + "parameters" : [ { + "name" : "relationshipId", + "in" : "path", + "description" : "Unique relationship identifier between User and Product", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/support": { - "post": { - "tags": [ - "external-v2", - "support" - ], - "summary": "sendSupportRequest", - "description": "Service to retrieve Support contact's form", - "operationId": "sendSupportRequestUsingPOST", - "parameters": [ - { - "name": "authenticated", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "boolean" - } - }, - { - "name": "authorities[0].authority", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - }, - { - "name": "credentials", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - }, - { - "name": "details", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - }, - { - "name": "principal", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SupportRequestDto" + "/v1/support" : { + "post" : { + "tags" : [ "external-v2", "support" ], + "summary" : "sendSupportRequest", + "description" : "Service to retrieve Support contact's form", + "operationId" : "sendSupportRequestUsingPOST", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SupportRequestDto" } } } }, - "responses": { - "200": { - "description": "OK", - "content": { - "text/html": { - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/html" : { + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/token/exchange": { - "get": { - "tags": [ - "token" - ], - "summary": "exchange", - "description": "Service create an 'Identity Token' based on a Self Care session token", - "operationId": "exchangeUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" + "/v1/support/request" : { + "post" : { + "tags" : [ "support" ], + "summary" : "getSupportRedirectUrl", + "description" : "Service to retrieve Support contact's form", + "operationId" : "getSupportRedirectUrlUsingPOST", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SupportRequestDto" + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SupportResponse" + } + } } }, - { - "name": "productId", - "in": "query", - "description": "Product's unique identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } }, - { - "name": "environment", - "in": "query", - "description": "Back Office environment", - "required": false, - "style": "form", - "schema": { - "type": "string" + "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" + } + } + } + } + }, + "deprecated" : true, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/token/exchange" : { + "get" : { + "tags" : [ "token" ], + "summary" : "exchange", + "description" : "Service create an 'Identity Token' based on a Self Care session token", + "operationId" : "exchangeUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityTokenResource" + }, { + "name" : "productId", + "in" : "query", + "description" : "Product's unique identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "environment", + "in" : "query", + "description" : "Back Office environment", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IdentityTokenResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/token/exchange/fatturazione": { - "get": { - "tags": [ - "token" - ], - "summary": "billingToken", - "description": "Service to create a 'Billing Token' based on a Self Care session token", - "operationId": "billingTokenUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" + "/v1/token/exchange/fatturazione" : { + "get" : { + "tags" : [ "token" ], + "summary" : "billingToken", + "description" : "Service to create a 'Billing Token' based on a Self Care session token", + "operationId" : "billingTokenUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "environment", + "in" : "query", + "description" : "Back Office environment", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "uri" + } + } } }, - { - "name": "environment", - "in": "query", - "description": "Back Office environment", - "required": false, - "style": "form", - "schema": { - "type": "string" + "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" ] + } ] + } + }, + "/v2/token/exchange" : { + "get" : { + "tags" : [ "token" ], + "summary" : "exchange", + "description" : "Service create an 'Identity Token' based on a Self Care session token", + "operationId" : "exchangeUsingGET_1", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "uri" + }, { + "name" : "productId", + "in" : "query", + "description" : "Product's unique identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "environment", + "in" : "query", + "description" : "Back Office environment", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IdentityTokenResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v2/token/exchange/fatturazione" : { + "get" : { + "tags" : [ "token" ], + "summary" : "billingToken", + "description" : "Service to create a 'Billing Token' based on a Self Care session token", + "operationId" : "billingTokenUsingGET_1", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "name", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "environment", + "in" : "query", + "description" : "Back Office environment", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "uri" + } + } + } + }, + "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" ] + } ] } }, - "/v1/users": { - "post": { - "tags": [ - "user" - ], - "summary": "saveUser", - "description": "Save new user", - "operationId": "saveUserUsingPOST", - "parameters": [ - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserDto" + "/v1/users" : { + "post" : { + "tags" : [ "user" ], + "summary" : "saveUser", + "description" : "Save new user", + "operationId" : "saveUserUsingPOST", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserDto" } } } }, - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserIdResource" + "responses" : { + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserIdResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/users/search": { - "post": { - "tags": [ - "user" - ], - "summary": "search", - "description": "Retrieve the user for a given fiscal code", - "operationId": "searchUsingPOST", - "parameters": [ - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SearchUserDto" + "/v1/users/search" : { + "post" : { + "tags" : [ "user" ], + "summary" : "search", + "description" : "Retrieve the user for a given fiscal code", + "operationId" : "searchUsingPOST", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SearchUserDto" } } } }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserResource" + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/users/{id}": { - "get": { - "tags": [ - "user" - ], - "summary": "getUserByInternalId", - "description": "Retrieve the user by internal id", - "operationId": "getUserByInternalIdUsingGET", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" + "/v1/users/{id}" : { + "get" : { + "tags" : [ "user" ], + "summary" : "getUserByInternalId", + "description" : "Retrieve the user by internal id", + "operationId" : "getUserByInternalIdUsingGET", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserResource" + } + } + } + }, + "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" + } + } } }, - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } + } + } + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + }, + "put" : { + "tags" : [ "user" ], + "summary" : "updateUser", + "description" : "Update previously added user", + "operationId" : "updateUserUsingPUT", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateUserDto" + } } } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserResource" + }, + "responses" : { + "204" : { + "description" : "No Content" + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "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" } } } }, - "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" ] + } ] + }, + "delete" : { + "tags" : [ "user" ], + "summary" : "deleteUserById", + "description" : "Delete user using internal id", + "operationId" : "deleteUserByIdUsingDELETE", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "404": { - "description": "Not Found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "500": { - "description": "Internal Server Error", - "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" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/user-groups" : { + "get" : { + "tags" : [ "user-groups" ], + "summary" : "getUserGroups", + "description" : "Service that allows to get a list of UserGroup entities", + "operationId" : "getUserGroupsUsingGET", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Users group's institutionId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "The page number to access (0 indexed, defaults to 0)", + "required" : false, + "style" : "form", + "allowReserved" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "size", + "in" : "query", + "description" : "Number of records per page (defaults to 20, max 2000)", + "required" : false, + "style" : "form", + "allowReserved" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "sort", + "in" : "query", + "description" : "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "required" : false, + "style" : "form", + "allowReserved" : true, + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + }, { + "name" : "productId", + "in" : "query", + "description" : "Users group's productId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "query", + "description" : "User's unique identifier", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string", + "format" : "uuid" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PageOfUserGroupPlainResource" + } + } + } + }, + "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" + } + } + } } - ] - }, - "put": { - "tags": [ - "user" - ], - "summary": "updateUser", - "description": "Update previously added user", - "operationId": "updateUserUsingPUT", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "institutionId", - "in": "query", - "description": "Institution's unique internal identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateUserDto" + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/user-groups/" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "createUserGroup", + "description" : "Service that allows the insert of a new occurrence for the UserGroup entity", + "operationId" : "createUserGroupUsingPOST", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateUserGroupDto" } } } }, - "responses": { - "204": { - "description": "No Content" + "responses" : { + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserGroupIdResource" + } + } + } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "409" : { + "description" : "Conflict" + }, + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/user-groups/{id}" : { + "get" : { + "tags" : [ "user-groups" ], + "summary" : "getUserGroupById", + "description" : "Service to get a specific UserGroup entity", + "operationId" : "getUserGroupByIdUsingGET", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ] + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Users group's institutionId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserGroupResource" + } + } + } + }, + "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" ] + } ] }, - "delete": { - "tags": [ - "user" - ], - "summary": "deleteUserById", - "description": "Delete user using internal id", - "operationId": "deleteUserByIdUsingDELETE", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" + "put" : { + "tags" : [ "user-groups" ], + "summary" : "updateUserGroup", + "description" : "Service that allows the modification of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "updateUserGroupUsingPUT", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateUserGroupDto" + } } } - ], - "responses": { - "204": { - "description": "No Content" + }, + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "409" : { + "description" : "Conflict" + }, + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + }, + "delete" : { + "tags" : [ "user-groups" ], + "summary" : "deleteUserGroup", + "description" : "Service that allows the deletion of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "deleteUserGroupUsingDELETE", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ] + } ], + "responses" : { + "204" : { + "description" : "No Content" + }, + "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" ] + } ] } }, - "/v1/user-groups": { - "get": { - "tags": [ - "user-groups" - ], - "summary": "getUserGroups", - "description": "Service that allows to get a list of UserGroup entities", - "operationId": "getUserGroupsUsingGET", - "parameters": [ - { - "name": "institutionId", - "in": "query", - "description": "Users group's institutionId", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "description": "The page number to access (0 indexed, defaults to 0)", - "required": false, - "style": "form", - "allowReserved": true, - "schema": { - "type": "integer", - "format": "int32" + "/v1/user-groups/{id}/activate" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "activateUserGroup", + "description" : "Service that allows the activation of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "activateUserGroupUsingPOST", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" + }, + "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" + } + } } }, - { - "name": "size", - "in": "query", - "description": "Number of records per page (defaults to 20, max 2000)", - "required": false, - "style": "form", - "allowReserved": true, - "schema": { - "type": "integer", - "format": "int32" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } + } + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/user-groups/{id}/members/{userId}" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "addMemberToUserGroup", + "description" : "Service to add a member to a specific UserGroup entity", + "operationId" : "addMemberToUserGroupUsingPOST", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - { - "name": "sort", - "in": "query", - "description": "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", - "required": false, - "style": "form", - "allowReserved": true, - "schema": { - "type": "array", - "items": { - "type": "string" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } } } }, - { - "name": "productId", - "in": "query", - "description": "Users group's productId", - "required": false, - "style": "form", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } }, - { - "name": "userId", - "in": "query", - "description": "User's unique identifier", - "required": false, - "style": "form", - "schema": { - "type": "string", - "format": "uuid" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PageOfUserGroupPlainResource" + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v1/user-groups/{id}/suspend" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "suspendUserGroup", + "description" : "Service that allows the suspension of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "suspendUserGroupUsingPOST", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "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" } } } }, - "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" ] + } ] + } + }, + "/v1/user-groups/{userGroupId}/members/{userId}" : { + "delete" : { + "tags" : [ "user-groups" ], + "summary" : "deleteMemberFromUserGroup", + "description" : "Service to delete a member from a specific UserGroup entity", + "operationId" : "deleteMemberFromUserGroupUsingDELETE", + "parameters" : [ { + "name" : "userGroupId", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "404": { - "description": "Not Found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "500": { - "description": "Internal Server Error", - "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" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v2/user-groups" : { + "get" : { + "tags" : [ "user-groups" ], + "summary" : "getUserGroups", + "description" : "Service that allows to get a list of UserGroup entities", + "operationId" : "getUserGroupsUsingGET_1", + "parameters" : [ { + "name" : "institutionId", + "in" : "query", + "description" : "Users group's institutionId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "The page number to access (0 indexed, defaults to 0)", + "required" : false, + "style" : "form", + "allowReserved" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "size", + "in" : "query", + "description" : "Number of records per page (defaults to 20, max 2000)", + "required" : false, + "style" : "form", + "allowReserved" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "sort", + "in" : "query", + "description" : "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "required" : false, + "style" : "form", + "allowReserved" : true, + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + }, { + "name" : "productId", + "in" : "query", + "description" : "Users group's productId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "query", + "description" : "User's unique identifier", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string", + "format" : "uuid" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PageOfUserGroupPlainResource" + } + } + } + }, + "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" ] + } ] } }, - "/v1/user-groups/": { - "post": { - "tags": [ - "user-groups" - ], - "summary": "createUserGroup", - "description": "Service that allows the insert of a new occurrence for the UserGroup entity", - "operationId": "createUserGroupUsingPOST", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateUserGroupDto" + "/v2/user-groups/" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "createUserGroup", + "description" : "Service that allows the insert of a new occurrence for the UserGroup entity", + "operationId" : "createUserGroupUsingPOST_1", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateUserGroupDto" } } } }, - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserGroupIdResource" + "responses" : { + "201" : { + "description" : "Created", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserGroupIdResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "401" : { + "description" : "Unauthorized", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "409": { - "description": "Conflict" + "409" : { + "description" : "Conflict" }, - "500": { - "description": "Internal Server Error", - "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" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/user-groups/{id}": { - "get": { - "tags": [ - "user-groups" - ], - "summary": "getUserGroupById", - "description": "Service to get a specific UserGroup entity", - "operationId": "getUserGroupByIdUsingGET", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "institutionId", - "in": "query", - "description": "Users group's institutionId", - "required": false, - "style": "form", - "schema": { - "type": "string" - } + "/v2/user-groups/{id}" : { + "get" : { + "tags" : [ "user-groups" ], + "summary" : "getUserGroupById", + "description" : "Service to get a specific UserGroup entity", + "operationId" : "getUserGroupByIdUsingGET_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Users group's institutionId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserGroupResource" + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserGroupResource" } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] }, - "put": { - "tags": [ - "user-groups" - ], - "summary": "updateUserGroup", - "description": "Service that allows the modification of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "updateUserGroupUsingPUT", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateUserGroupDto" + "put" : { + "tags" : [ "user-groups" ], + "summary" : "updateUserGroup", + "description" : "Service that allows the modification of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "updateUserGroupUsingPUT_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateUserGroupDto" } } } }, - "responses": { - "204": { - "description": "No Content" + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "401" : { + "description" : "Unauthorized", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } }, - "409": { - "description": "Conflict" + "409" : { + "description" : "Conflict" }, - "500": { - "description": "Internal Server Error", - "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" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] }, - "delete": { - "tags": [ - "user-groups" - ], - "summary": "deleteUserGroup", - "description": "Service that allows the deletion of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "deleteUserGroupUsingDELETE", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "user-groups" ], + "summary" : "deleteUserGroup", + "description" : "Service that allows the deletion of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "deleteUserGroupUsingDELETE_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/user-groups/{id}/activate": { - "post": { - "tags": [ - "user-groups" - ], - "summary": "activateUserGroup", - "description": "Service that allows the activation of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "activateUserGroupUsingPOST", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v2/user-groups/{id}/activate" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "activateUserGroup", + "description" : "Service that allows the activation of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "activateUserGroupUsingPOST_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/user-groups/{id}/members/{userId}": { - "post": { - "tags": [ - "user-groups" - ], - "summary": "addMemberToUserGroup", - "description": "Service to add a member to a specific UserGroup entity", - "operationId": "addMemberToUserGroupUsingPOST", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" - } + "/v2/user-groups/{id}/members/{userId}" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "addMemberToUserGroup", + "description" : "Service to add a member to a specific UserGroup entity", + "operationId" : "addMemberToUserGroupUsingPOST_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/user-groups/{id}/suspend": { - "post": { - "tags": [ - "user-groups" - ], - "summary": "suspendUserGroup", - "description": "Service that allows the suspension of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "suspendUserGroupUsingPOST", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "/v2/user-groups/{id}/suspend" : { + "post" : { + "tags" : [ "user-groups" ], + "summary" : "suspendUserGroup", + "description" : "Service that allows the suspension of a specific occurrence for the UserGroup entity by an Admin user", + "operationId" : "suspendUserGroupUsingPOST_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v1/user-groups/{userGroupId}/members/{userId}": { - "delete": { - "tags": [ - "user-groups" - ], - "summary": "deleteMemberFromUserGroup", - "description": "Service to delete a member from a specific UserGroup entity", - "operationId": "deleteMemberFromUserGroupUsingDELETE", - "parameters": [ - { - "name": "userGroupId", - "in": "path", - "description": "Users group's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "format": "uuid" - } + "/v2/user-groups/{userGroupId}/members/{userId}" : { + "delete" : { + "tags" : [ "user-groups" ], + "summary" : "deleteMemberFromUserGroup", + "description" : "Service to delete a member from a specific UserGroup entity", + "operationId" : "deleteMemberFromUserGroupUsingDELETE_1", + "parameters" : [ { + "name" : "userGroupId", + "in" : "path", + "description" : "Users group's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string", + "format" : "uuid" } - ], - "responses": { - "204": { - "description": "No Content" + } ], + "responses" : { + "204" : { + "description" : "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v2/institutions": { - "get": { - "tags": [ - "user" - ], - "summary": "getInstitutions", - "description": "Service to get all the institutions related to logged user", - "operationId": "getInstitutionsUsingGET_1", - "parameters": [ - { - "name": "authenticated", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "boolean" - } - }, - { - "name": "authorities[0].authority", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "string" - } - }, - { - "name": "credentials", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - }, - { - "name": "details", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - }, - { - "name": "principal", - "in": "query", - "required": false, - "style": "form", - "schema": { - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InstitutionBaseResource" + "/v2/users/institution/{institutionId}" : { + "get" : { + "tags" : [ "user" ], + "summary" : "getUsers", + "description" : "Service to get all the users related to a specific institution", + "operationId" : "getUsersUsingGET", + "parameters" : [ { + "name" : "authenticated", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "authorities[0].authority", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "credentials", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "details", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "institutionId", + "in" : "path", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "principal", + "in" : "query", + "required" : false, + "style" : "form", + "schema" : { + "type" : "object" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "productId", + "required" : false, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProductUserResource" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "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" + "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" + "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v2/{userId}": { - "delete": { - "tags": [ - "user" - ], - "summary": "deleteRelationshipById", - "description": "Delete the relationship", - "operationId": "deleteRelationshipByIdUsingDELETE_1", - "parameters": [ - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" + "/v2/users/search" : { + "post" : { + "tags" : [ "user" ], + "summary" : "search", + "description" : "Retrieve the user for a given fiscal code", + "operationId" : "searchUsingPOST_1", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SearchUserDto" + } } - }, - { - "name": "institutionId", - "in": "query", - "description": "institutionId", - "required": true, - "style": "form", - "schema": { - "type": "string" + } + }, + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserResource" + } + } } }, - { - "name": "productId", - "in": "query", - "description": "productId", - "required": true, - "style": "form", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "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" } } } }, - "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] } }, - "/v2/{userId}/activate": { - "post": { - "tags": [ - "user" - ], - "summary": "activateRelationship", - "description": "Activate the relationship", - "operationId": "activateRelationshipUsingPOST_1", - "parameters": [ - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } - }, - { - "name": "institutionId", - "in": "query", - "description": "institutionId", - "required": true, - "style": "form", - "schema": { - "type": "string" + "/v2/users/{id}" : { + "get" : { + "tags" : [ "user" ], + "summary" : "getUserById", + "description" : "Retrieve the user by internal id", + "operationId" : "getUserByIdUsingGET", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserResource" + } + } } }, - { - "name": "productId", - "in": "query", - "description": "productId", - "required": true, - "style": "form", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "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" } } } }, - "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" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } } }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ] - } - }, - "/v2/{userId}/suspend": { - "post": { - "tags": [ - "user" - ], - "summary": "suspendRelationship", - "description": "Suspend the relationship", - "operationId": "suspendRelationshipUsingPOST_1", - "parameters": [ - { - "name": "userId", - "in": "path", - "description": "User's unique identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + }, + "put" : { + "tags" : [ "user" ], + "summary" : "updateUser", + "description" : "Update previously added user", + "operationId" : "updateUserUsingPUT_1", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's unique internal identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateUserDto" + } } + } + }, + "responses" : { + "204" : { + "description" : "No Content" }, - { - "name": "institutionId", - "in": "query", - "description": "Institution's identifier", - "required": true, - "style": "form", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } }, - { - "name": "productId", - "in": "query", - "description": "productId", - "required": true, - "style": "form", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" + } + } } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + "500" : { + "description" : "Internal Server Error", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/Problem" } } } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + } + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v2/users/{userId}" : { + "delete" : { + "tags" : [ "user" ], + "summary" : "deleteRelationshipById", + "description" : "Delete the relationship", + "operationId" : "deleteRelationshipByIdUsingDELETE_1", + "parameters" : [ { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "institutionId", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "productId", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" + }, + "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" } } } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" + } + }, + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v2/users/{userId}/activate" : { + "post" : { + "tags" : [ "user" ], + "summary" : "activateRelationship", + "description" : "Activate the relationship", + "operationId" : "activateRelationshipUsingPOST_1", + "parameters" : [ { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "institutionId", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "productId", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" + }, + "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" - ] + "security" : [ { + "bearerAuth" : [ "global" ] + } ] + } + }, + "/v2/users/{userId}/suspend" : { + "post" : { + "tags" : [ "user" ], + "summary" : "suspendRelationship", + "description" : "Suspend the relationship", + "operationId" : "suspendRelationshipUsingPOST_1", + "parameters" : [ { + "name" : "userId", + "in" : "path", + "description" : "User's unique identifier", + "required" : true, + "style" : "simple", + "schema" : { + "type" : "string" + } + }, { + "name" : "institutionId", + "in" : "query", + "description" : "Institution's identifier", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + }, { + "name" : "productId", + "in" : "query", + "description" : "productId", + "required" : true, + "style" : "form", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content" + }, + "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" ] + } ] } } }, - "components": { - "schemas": { - "AdditionalInformations": { - "title": "AdditionalInformations", - "type": "object", - "properties": { - "agentOfPublicService": { - "type": "boolean", - "description": "The institution is an agent of a public service", - "example": false - }, - "agentOfPublicServiceNote": { - "type": "string", - "description": "agentOfPublicService Note" - }, - "belongRegulatedMarket": { - "type": "boolean", - "description": "The institution belongs to a regulated market", - "example": false - }, - "establishedByRegulatoryProvision": { - "type": "boolean", - "description": "The institution is a company established by a regulatory provision", - "example": false - }, - "establishedByRegulatoryProvisionNote": { - "type": "string", - "description": "establishedByRegulatoryProvision Note" - }, - "ipa": { - "type": "boolean", - "description": "The institution is registered on IPA", - "example": false - }, - "ipaCode": { - "type": "string", - "description": "IPA code" - }, - "otherNote": { - "type": "string", - "description": "Other note" - }, - "regulatedMarketNote": { - "type": "string", - "description": "regulatedMarket Note" + "components" : { + "schemas" : { + "AdditionalInformations" : { + "title" : "AdditionalInformations", + "type" : "object", + "properties" : { + "agentOfPublicService" : { + "type" : "boolean", + "description" : "The institution is an agent of a public service", + "example" : false + }, + "agentOfPublicServiceNote" : { + "type" : "string", + "description" : "agentOfPublicService Note" + }, + "belongRegulatedMarket" : { + "type" : "boolean", + "description" : "The institution belongs to a regulated market", + "example" : false + }, + "establishedByRegulatoryProvision" : { + "type" : "boolean", + "description" : "The institution is a company established by a regulatory provision", + "example" : false + }, + "establishedByRegulatoryProvisionNote" : { + "type" : "string", + "description" : "establishedByRegulatoryProvision Note" + }, + "ipa" : { + "type" : "boolean", + "description" : "The institution is registered on IPA", + "example" : false + }, + "ipaCode" : { + "type" : "string", + "description" : "IPA code" + }, + "otherNote" : { + "type" : "string", + "description" : "Other note" + }, + "regulatedMarketNote" : { + "type" : "string", + "description" : "regulatedMarket Note" } } }, - "Attribute": { - "title": "Attribute", - "type": "object", - "properties": { - "code": { - "type": "string" + "Attribute" : { + "title" : "Attribute", + "type" : "object", + "properties" : { + "code" : { + "type" : "string" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "origin": { - "type": "string" + "origin" : { + "type" : "string" } } }, - "BackOfficeConfigurationsResource": { - "title": "BackOfficeConfigurationsResource", - "type": "object", - "properties": { - "environment": { - "type": "string", - "description": "Back Office environment" - }, - "url": { - "type": "string", - "description": "URL that redirects to the back-office section, where is possible to manage the product" + "BackOfficeConfigurationsResource" : { + "title" : "BackOfficeConfigurationsResource", + "type" : "object", + "properties" : { + "environment" : { + "type" : "string", + "description" : "Back Office environment" + }, + "url" : { + "type" : "string", + "description" : "URL that redirects to the back-office section, where is possible to manage the product" } } }, - "Billing": { - "title": "Billing", - "type": "object", - "properties": { - "publicServices": { - "type": "boolean" + "Billing" : { + "title" : "Billing", + "type" : "object", + "properties" : { + "publicServices" : { + "type" : "boolean" }, - "recipientCode": { - "type": "string" + "recipientCode" : { + "type" : "string" }, - "vatNumber": { - "type": "string" + "vatNumber" : { + "type" : "string" } } }, - "BrokerResource": { - "title": "BrokerResource", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Partner's code" - }, - "description": { - "type": "string", - "description": "Partner's description" - }, - "enabled": { - "type": "boolean", - "description": "Partner's enabling", - "example": false + "BrokerResource" : { + "title" : "BrokerResource", + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "description" : "Partner's code" + }, + "description" : { + "type" : "string", + "description" : "Partner's description" + }, + "enabled" : { + "type" : "boolean", + "description" : "Partner's enabling", + "example" : false } } }, - "CertifiedFieldResourceOfstring": { - "title": "CertifiedFieldResourceOfstring", - "type": "object", - "properties": { - "certified": { - "type": "boolean", - "description": "Indicates whether the value comes from a certified information source", - "example": false - }, - "value": { - "type": "string", - "description": "Field value" + "CertifiedFieldResourceOfstring" : { + "title" : "CertifiedFieldResourceOfstring", + "type" : "object", + "properties" : { + "certified" : { + "type" : "boolean", + "description" : "Indicates whether the value comes from a certified information source", + "example" : false + }, + "value" : { + "type" : "string", + "description" : "Field value" } } }, - "CreateUserDto": { - "title": "CreateUserDto", - "required": [ - "productRoles", - "taxCode" - ], - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's personal email", - "format": "email", - "example": "email@example.com" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "productRoles": { - "uniqueItems": true, - "type": "array", - "description": "User's roles in product", - "items": { - "type": "string" - } - }, - "surname": { - "type": "string", - "description": "User's surname" - }, - "taxCode": { - "type": "string", - "description": "User's fiscal code" + "CreateUserDto" : { + "title" : "CreateUserDto", + "required" : [ "productRoles", "taxCode" ], + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's personal email", + "format" : "email", + "example" : "email@example.com" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "productRoles" : { + "uniqueItems" : true, + "type" : "array", + "description" : "User's roles in product", + "items" : { + "type" : "string" + } + }, + "surname" : { + "type" : "string", + "description" : "User's surname" + }, + "taxCode" : { + "type" : "string", + "description" : "User's fiscal code" } } }, - "CreateUserGroupDto": { - "title": "CreateUserGroupDto", - "required": [ - "description", - "institutionId", - "members", - "name", - "productId" - ], - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "Users group's description" - }, - "institutionId": { - "type": "string", - "description": "Users group's institutionId" - }, - "members": { - "uniqueItems": true, - "type": "array", - "description": "List of all the members of the group", - "items": { - "type": "string", - "format": "uuid" - } - }, - "name": { - "type": "string", - "description": "Users group's name" - }, - "productId": { - "type": "string", - "description": "Users group's productId" + "CreateUserGroupDto" : { + "title" : "CreateUserGroupDto", + "required" : [ "description", "institutionId", "members", "name", "productId" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string", + "description" : "Users group's description" + }, + "institutionId" : { + "type" : "string", + "description" : "Users group's institutionId" + }, + "members" : { + "uniqueItems" : true, + "type" : "array", + "description" : "List of all the members of the group", + "items" : { + "type" : "string", + "format" : "uuid" + } + }, + "name" : { + "type" : "string", + "description" : "Users group's name" + }, + "productId" : { + "type" : "string", + "description" : "Users group's productId" } } }, - "DataProtectionOfficer": { - "title": "DataProtectionOfficer", - "type": "object", - "properties": { - "address": { - "type": "string" + "DataProtectionOfficer" : { + "title" : "DataProtectionOfficer", + "type" : "object", + "properties" : { + "address" : { + "type" : "string" }, - "email": { - "type": "string" + "email" : { + "type" : "string" }, - "pec": { - "type": "string" + "pec" : { + "type" : "string" } } }, - "DelegationIdResource": { - "title": "DelegationIdResource", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Delegation's unique identifier" + "DelegationIdResource" : { + "title" : "DelegationIdResource", + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "Delegation's unique identifier" } } }, - "DelegationRequestDto": { - "title": "DelegationRequestDto", - "required": [ - "from", - "institutionFromName", - "institutionToName", - "productId", - "to", - "type" - ], - "type": "object", - "properties": { - "from": { - "type": "string", - "description": "Institution's identifier" - }, - "institutionFromName": { - "type": "string", - "description": "Institution's name" - }, - "institutionToName": { - "type": "string", - "description": "Partner's name" - }, - "productId": { - "type": "string", - "description": "Product's identifier" - }, - "to": { - "type": "string", - "description": "Technical partner's identifier" - }, - "type": { - "type": "string", - "description": "Delegation type", - "enum": [ - "AOO", - "PT", - "UO" - ] + "DelegationRequestDto" : { + "title" : "DelegationRequestDto", + "required" : [ "from", "institutionFromName", "institutionToName", "productId", "to", "type" ], + "type" : "object", + "properties" : { + "from" : { + "type" : "string", + "description" : "Institution's identifier" + }, + "institutionFromName" : { + "type" : "string", + "description" : "Institution's name" + }, + "institutionToName" : { + "type" : "string", + "description" : "Partner's name" + }, + "productId" : { + "type" : "string", + "description" : "Product's identifier" + }, + "to" : { + "type" : "string", + "description" : "Technical partner's identifier" + }, + "type" : { + "type" : "string", + "description" : "Delegation type", + "enum" : [ "AOO", "PT", "UO" ] } } }, - "DelegationResource": { - "title": "DelegationResource", - "type": "object", - "properties": { - "brokerId": { - "type": "string" + "DelegationResource" : { + "title" : "DelegationResource", + "type" : "object", + "properties" : { + "brokerId" : { + "type" : "string" }, - "brokerName": { - "type": "string" + "brokerName" : { + "type" : "string" }, - "id": { - "type": "string" + "id" : { + "type" : "string" }, - "institutionId": { - "type": "string" + "institutionId" : { + "type" : "string" }, - "institutionName": { - "type": "string" + "institutionName" : { + "type" : "string" }, - "institutionRootName": { - "type": "string" + "institutionRootName" : { + "type" : "string" }, - "productId": { - "type": "string" + "productId" : { + "type" : "string" }, - "type": { - "type": "string", - "enum": [ - "AOO", - "PT", - "UO" - ] + "type" : { + "type" : "string", + "enum" : [ "AOO", "PT", "UO" ] } } }, - "DpoData": { - "title": "DpoData", - "required": [ - "address", - "email", - "pec" - ], - "type": "object", - "properties": { - "address": { - "type": "string", - "description": "DPO's address" - }, - "email": { - "type": "string", - "description": "DPO's email", - "format": "email", - "example": "email@example.com" - }, - "pec": { - "type": "string", - "description": "DPO's PEC", - "format": "email", - "example": "email@example.com" + "DpoData" : { + "title" : "DpoData", + "required" : [ "address", "email", "pec" ], + "type" : "object", + "properties" : { + "address" : { + "type" : "string", + "description" : "DPO's address" + }, + "email" : { + "type" : "string", + "description" : "DPO's email", + "format" : "email", + "example" : "email@example.com" + }, + "pec" : { + "type" : "string", + "description" : "DPO's PEC", + "format" : "email", + "example" : "email@example.com" } } }, - "GeographicTaxonomy": { - "title": "GeographicTaxonomy", - "type": "object", - "properties": { - "code": { - "type": "string" + "GeographicTaxonomy" : { + "title" : "GeographicTaxonomy", + "type" : "object", + "properties" : { + "code" : { + "type" : "string" }, - "desc": { - "type": "string" + "desc" : { + "type" : "string" } } }, - "GeographicTaxonomyDto": { - "title": "GeographicTaxonomyDto", - "required": [ - "code", - "desc" - ], - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Institution's geographic taxonomy ISTAT code" - }, - "desc": { - "type": "string", - "description": "Institution's geographic taxonomy extended name" + "GeographicTaxonomyDto" : { + "title" : "GeographicTaxonomyDto", + "required" : [ "code", "desc" ], + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "description" : "Institution's geographic taxonomy ISTAT code" + }, + "desc" : { + "type" : "string", + "description" : "Institution's geographic taxonomy extended name" } } }, - "GeographicTaxonomyListDto": { - "title": "GeographicTaxonomyListDto", - "required": [ - "geographicTaxonomyDtoList" - ], - "type": "object", - "properties": { - "geographicTaxonomyDtoList": { - "type": "array", - "description": "List of institution's geographic taxonomies ", - "items": { - "$ref": "#/components/schemas/GeographicTaxonomyDto" + "GeographicTaxonomyListDto" : { + "title" : "GeographicTaxonomyListDto", + "required" : [ "geographicTaxonomyDtoList" ], + "type" : "object", + "properties" : { + "geographicTaxonomyDtoList" : { + "type" : "array", + "description" : "List of institution's geographic taxonomies", + "items" : { + "$ref" : "#/components/schemas/GeographicTaxonomyDto" } } } }, - "GeographicTaxonomyResource": { - "title": "GeographicTaxonomyResource", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Institution's geographic taxonomy ISTAT code" - }, - "desc": { - "type": "string", - "description": "Institution's geographic taxonomy extended name" + "GeographicTaxonomyResource" : { + "title" : "GeographicTaxonomyResource", + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "description" : "Institution's geographic taxonomy ISTAT code" + }, + "desc" : { + "type" : "string", + "description" : "Institution's geographic taxonomy extended name" } } }, - "IdentityTokenResource": { - "title": "IdentityTokenResource", - "required": [ - "token" - ], - "type": "object", - "properties": { - "token": { - "type": "string", - "description": "The Identity Token" + "IdentityTokenResource" : { + "title" : "IdentityTokenResource", + "required" : [ "token" ], + "type" : "object", + "properties" : { + "token" : { + "type" : "string", + "description" : "The Identity Token" } } }, - "Institution": { - "title": "Institution", - "type": "object", - "properties": { - "address": { - "type": "string" + "Institution" : { + "title" : "Institution", + "type" : "object", + "properties" : { + "address" : { + "type" : "string" }, - "aooParentCode": { - "type": "string" + "aooParentCode" : { + "type" : "string" }, - "attributes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Attribute" + "attributes" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Attribute" } }, - "billing": { - "$ref": "#/components/schemas/Billing" + "billing" : { + "$ref" : "#/components/schemas/Billing" }, - "category": { - "type": "string" + "category" : { + "type" : "string" }, - "city": { - "type": "string" + "city" : { + "type" : "string" }, - "country": { - "type": "string" + "country" : { + "type" : "string" }, - "county": { - "type": "string" + "county" : { + "type" : "string" }, - "dataProtectionOfficer": { - "$ref": "#/components/schemas/DataProtectionOfficer" + "dataProtectionOfficer" : { + "$ref" : "#/components/schemas/DataProtectionOfficer" }, - "delegation": { - "type": "boolean" + "delegation" : { + "type" : "boolean" }, - "description": { - "type": "string" + "description" : { + "type" : "string" }, - "digitalAddress": { - "type": "string" + "digitalAddress" : { + "type" : "string" }, - "externalId": { - "type": "string" + "externalId" : { + "type" : "string" }, - "geographicTaxonomies": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeographicTaxonomy" + "geographicTaxonomies" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GeographicTaxonomy" } }, - "id": { - "type": "string" + "id" : { + "type" : "string" }, - "institutionType": { - "type": "string", - "enum": [ - "AS", - "CON", - "GSP", - "PA", - "PG", - "PSP", - "PT", - "REC", - "SA", - "SCP" - ] + "institutionType" : { + "type" : "string", + "enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ] }, - "onboarding": { - "type": "array", - "items": { - "$ref": "#/components/schemas/OnboardedProduct" + "onboarding" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/OnboardedProduct" } }, - "origin": { - "type": "string" + "origin" : { + "type" : "string" }, - "originId": { - "type": "string" + "originId" : { + "type" : "string" }, - "paymentServiceProvider": { - "$ref": "#/components/schemas/PaymentServiceProvider" + "paymentServiceProvider" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" }, - "rootParent": { - "$ref": "#/components/schemas/RootParentResponse" + "rootParent" : { + "$ref" : "#/components/schemas/RootParentResponse" }, - "subunitCode": { - "type": "string" + "subunitCode" : { + "type" : "string" }, - "subunitType": { - "type": "string" + "subunitType" : { + "type" : "string" }, - "supportContact": { - "$ref": "#/components/schemas/SupportContact" + "supportContact" : { + "$ref" : "#/components/schemas/SupportContact" }, - "taxCode": { - "type": "string" + "taxCode" : { + "type" : "string" }, - "zipCode": { - "type": "string" + "zipCode" : { + "type" : "string" } } }, - "InstitutionBaseResource": { - "title": "InstitutionBaseResource", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Institution's unique internal identifier" - }, - "name": { - "type": "string", - "description": "Institution's name" - }, - "parentDescription": { - "type": "string", - "description": "Sub unit institution parent Description" - }, - "status": { - "type": "string", - "description": "Institution's status" - }, - "userRole": { - "type": "string", - "description": "Logged user's role" + "InstitutionBaseResource" : { + "title" : "InstitutionBaseResource", + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "Institution's unique internal identifier" + }, + "name" : { + "type" : "string", + "description" : "Institution's name" + }, + "parentDescription" : { + "type" : "string", + "description" : "Sub unit institution parent Description" + }, + "status" : { + "type" : "string", + "description" : "Institution's status" + }, + "userRole" : { + "type" : "string", + "description" : "Logged user's role" } } }, - "InstitutionInfo": { - "title": "InstitutionInfo", - "required": [ - "address", - "fiscalCode", - "institutionType", - "mailAddress", - "name", - "vatNumber", - "zipCode" - ], - "type": "object", - "properties": { - "additionalInformations": { - "description": "Institution's additional informations", - "$ref": "#/components/schemas/AdditionalInformations" - }, - "address": { - "type": "string", - "description": "Institution's physical address" - }, - "city": { - "type": "string", - "description": "Institution's city" - }, - "country": { - "type": "string", - "description": "Institution's country" - }, - "county": { - "type": "string", - "description": "Institution's county" - }, - "dpoData": { - "description": "Data Protection Officer (DPO) specific data", - "$ref": "#/components/schemas/DpoData" - }, - "fiscalCode": { - "type": "string", - "description": "Fiscal code corresponding to the institution" - }, - "id": { - "type": "string", - "description": "Institution's unique internal identifier" - }, - "institutionType": { - "type": "string", - "description": "Institution's type", - "enum": [ - "AS", - "CON", - "GSP", - "PA", - "PG", - "PSP", - "PT", - "REC", - "SA", - "SCP" - ] - }, - "mailAddress": { - "type": "string", - "description": "Institution's email address" - }, - "name": { - "type": "string", - "description": "Institution's name" - }, - "pspData": { - "description": "Payment Service Provider (PSP) specific data", - "$ref": "#/components/schemas/PspData" - }, - "recipientCode": { - "type": "string", - "description": "Billing recipient code" - }, - "vatNumber": { - "type": "string", - "description": "Institution's VAT number" - }, - "zipCode": { - "type": "string", - "description": "Institution's zipCode" + "InstitutionInfo" : { + "title" : "InstitutionInfo", + "required" : [ "address", "fiscalCode", "institutionType", "mailAddress", "name", "vatNumber", "zipCode" ], + "type" : "object", + "properties" : { + "additionalInformations" : { + "description" : "Institution's additional informations", + "$ref" : "#/components/schemas/AdditionalInformations" + }, + "address" : { + "type" : "string", + "description" : "Institution's physical address" + }, + "city" : { + "type" : "string", + "description" : "Institution's city" + }, + "country" : { + "type" : "string", + "description" : "Institution's country" + }, + "county" : { + "type" : "string", + "description" : "Institution's county" + }, + "dpoData" : { + "description" : "Data Protection Officer (DPO) specific data", + "$ref" : "#/components/schemas/DpoData" + }, + "fiscalCode" : { + "type" : "string", + "description" : "Fiscal code corresponding to the institution" + }, + "id" : { + "type" : "string", + "description" : "Institution's unique internal identifier" + }, + "institutionType" : { + "type" : "string", + "description" : "Institution's type", + "enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ] + }, + "mailAddress" : { + "type" : "string", + "description" : "Institution's email address" + }, + "name" : { + "type" : "string", + "description" : "Institution's name" + }, + "pspData" : { + "description" : "Payment Service Provider (PSP) specific data", + "$ref" : "#/components/schemas/PspData" + }, + "recipientCode" : { + "type" : "string", + "description" : "Billing recipient code" + }, + "vatNumber" : { + "type" : "string", + "description" : "Institution's VAT number" + }, + "zipCode" : { + "type" : "string", + "description" : "Institution's zipCode" } } }, - "InstitutionResource": { - "title": "InstitutionResource", - "type": "object", - "properties": { - "address": { - "type": "string", - "description": "Institution's physical address" - }, - "aooParentCode": { - "type": "string", - "description": "UO's parent AOO code" - }, - "category": { - "type": "string", - "description": "Institution's category" - }, - "city": { - "type": "string", - "description": "Institution's city" - }, - "country": { - "type": "string", - "description": "Institution's country" - }, - "county": { - "type": "string", - "description": "Institution's county" - }, - "delegation": { - "type": "boolean", - "description": "Institution's delegation presence", - "example": false - }, - "externalId": { - "type": "string", - "description": "Institution's unique external identifier" - }, - "fiscalCode": { - "type": "string", - "description": "Fiscal code corresponding to the institution" - }, - "geographicTaxonomies": { - "type": "array", - "description": "Institution's geographic taxonomy", - "items": { - "$ref": "#/components/schemas/GeographicTaxonomyResource" - } - }, - "id": { - "type": "string", - "description": "Institution's unique internal identifier" - }, - "institutionType": { - "type": "string", - "description": "Institution's type", - "enum": [ - "AS", - "CON", - "GSP", - "PA", - "PG", - "PSP", - "PT", - "REC", - "SA", - "SCP" - ] - }, - "mailAddress": { - "type": "string", - "description": "Institution's email address" - }, - "name": { - "type": "string", - "description": "Institution's name" - }, - "origin": { - "type": "string", - "description": "Institution's data origin" - }, - "originId": { - "type": "string", - "description": "Institution's identifier related to origin" - }, - "parentDescription": { - "type": "string", - "description": "Sub unit institution parent Description" - }, - "products": { - "type": "array", - "description": "${swagger.dashboard.institutions.model.products}", - "items": { - "$ref": "#/components/schemas/OnboardedProductResource" - } - }, - "recipientCode": { - "type": "string", - "description": "Billing recipient code" - }, - "status": { - "type": "string", - "description": "Institution's status" - }, - "subunitCode": { - "type": "string", - "description": "AOO o UO unique code" - }, - "subunitType": { - "type": "string", - "description": "Institution's subunit type" - }, - "supportContact": { - "description": "'Institution's assistance contacts'", - "$ref": "#/components/schemas/SupportContactResource" - }, - "userRole": { - "type": "string", - "description": "Logged user's role" - }, - "vatNumber": { - "type": "string", - "description": "Institution's VAT number" - }, - "vatNumberGroup": { - "type": "boolean", - "description": "PSP's Vat Number group", - "example": false - }, - "zipCode": { - "type": "string", - "description": "Institution's zipCode" + "InstitutionResource" : { + "title" : "InstitutionResource", + "type" : "object", + "properties" : { + "address" : { + "type" : "string", + "description" : "Institution's physical address" + }, + "aooParentCode" : { + "type" : "string", + "description" : "UO's parent AOO code" + }, + "category" : { + "type" : "string", + "description" : "Institution's category" + }, + "city" : { + "type" : "string", + "description" : "Institution's city" + }, + "country" : { + "type" : "string", + "description" : "Institution's country" + }, + "county" : { + "type" : "string", + "description" : "Institution's county" + }, + "delegation" : { + "type" : "boolean", + "description" : "Institution's delegation presence", + "example" : false + }, + "externalId" : { + "type" : "string", + "description" : "Institution's unique external identifier" + }, + "fiscalCode" : { + "type" : "string", + "description" : "Fiscal code corresponding to the institution" + }, + "geographicTaxonomies" : { + "type" : "array", + "description" : "Institution's geographic taxonomy", + "items" : { + "$ref" : "#/components/schemas/GeographicTaxonomyResource" + } + }, + "id" : { + "type" : "string", + "description" : "Institution's unique internal identifier" + }, + "institutionType" : { + "type" : "string", + "description" : "Institution's type", + "enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ] + }, + "mailAddress" : { + "type" : "string", + "description" : "Institution's email address" + }, + "name" : { + "type" : "string", + "description" : "Institution's name" + }, + "origin" : { + "type" : "string", + "description" : "Institution's data origin" + }, + "originId" : { + "type" : "string", + "description" : "Institution's identifier related to origin" + }, + "parentDescription" : { + "type" : "string", + "description" : "Sub unit institution parent Description" + }, + "products" : { + "type" : "array", + "description" : "Authorized user products", + "items" : { + "$ref" : "#/components/schemas/OnboardedProductResource" + } + }, + "recipientCode" : { + "type" : "string", + "description" : "Billing recipient code" + }, + "status" : { + "type" : "string", + "description" : "Institution's status" + }, + "subunitCode" : { + "type" : "string", + "description" : "AOO o UO unique code" + }, + "subunitType" : { + "type" : "string", + "description" : "Institution's subunit type" + }, + "supportContact" : { + "description" : "'Institution's assistance contacts'", + "$ref" : "#/components/schemas/SupportContactResource" + }, + "userRole" : { + "type" : "string", + "description" : "Logged user's role" + }, + "vatNumber" : { + "type" : "string", + "description" : "Institution's VAT number" + }, + "vatNumberGroup" : { + "type" : "boolean", + "description" : "PSP's Vat Number group", + "example" : false + }, + "zipCode" : { + "type" : "string", + "description" : "Institution's zipCode" } } }, - "InstitutionUserDetailsResource": { - "title": "InstitutionUserDetailsResource", - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's personal email" - }, - "fiscalCode": { - "type": "string", - "description": "User's fiscal code" - }, - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "products": { - "type": "array", - "description": "Authorized user products", - "items": { - "$ref": "#/components/schemas/ProductInfoResource" - } - }, - "role": { - "type": "string", - "description": "User's role", - "enum": [ - "ADMIN", - "LIMITED" - ] - }, - "status": { - "type": "string", - "description": "User's status" - }, - "surname": { - "type": "string", - "description": "User's surname" + "InstitutionUserDetailsResource" : { + "title" : "InstitutionUserDetailsResource", + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's personal email" + }, + "fiscalCode" : { + "type" : "string", + "description" : "User's fiscal code" + }, + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "products" : { + "type" : "array", + "description" : "Authorized user products", + "items" : { + "$ref" : "#/components/schemas/ProductInfoResource" + } + }, + "role" : { + "type" : "string", + "description" : "User's role", + "enum" : [ "ADMIN", "LIMITED" ] + }, + "status" : { + "type" : "string", + "description" : "User's status" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" } } }, - "InstitutionUserResource": { - "title": "InstitutionUserResource", - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's personal email" - }, - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "products": { - "type": "array", - "description": "Authorized user products", - "items": { - "$ref": "#/components/schemas/ProductInfoResource" - } - }, - "role": { - "type": "string", - "description": "User's role", - "enum": [ - "ADMIN", - "LIMITED" - ] - }, - "status": { - "type": "string", - "description": "User's status" - }, - "surname": { - "type": "string", - "description": "User's surname" + "InstitutionUserResource" : { + "title" : "InstitutionUserResource", + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's personal email" + }, + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "products" : { + "type" : "array", + "description" : "Authorized user products", + "items" : { + "$ref" : "#/components/schemas/ProductInfoResource" + } + }, + "role" : { + "type" : "string", + "description" : "User's role", + "enum" : [ "ADMIN", "LIMITED" ] + }, + "status" : { + "type" : "string", + "description" : "User's status" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" } } }, - "InvalidParam": { - "title": "InvalidParam", - "required": [ - "name", - "reason" - ], - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Invalid parameter name." - }, - "reason": { - "type": "string", - "description": "Invalid parameter reason." + "InvalidParam" : { + "title" : "InvalidParam", + "required" : [ "name", "reason" ], + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "description" : "Invalid parameter name." + }, + "reason" : { + "type" : "string", + "description" : "Invalid parameter reason." } } }, - "OnboardedProduct": { - "title": "OnboardedProduct", - "type": "object", - "properties": { - "authorized": { - "type": "boolean" - }, - "billing": { - "$ref": "#/components/schemas/Billing" - }, - "productId": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "ACTIVE", - "DELETED", - "PENDING", - "REJECTED", - "SUSPENDED", - "TOBEVALIDATED" - ] - }, - "userRole": { - "type": "string" + "OnboardedProduct" : { + "title" : "OnboardedProduct", + "type" : "object", + "properties" : { + "authorized" : { + "type" : "boolean" + }, + "billing" : { + "$ref" : "#/components/schemas/Billing" + }, + "productId" : { + "type" : "string" + }, + "status" : { + "type" : "string", + "enum" : [ "ACTIVE", "DELETED", "PENDING", "REJECTED", "SUSPENDED", "TOBEVALIDATED" ] + }, + "userRole" : { + "type" : "string" } } }, - "OnboardedProductResource": { - "title": "OnboardedProductResource", - "type": "object", - "properties": { - "authorized": { - "type": "boolean" - }, - "billing": { - "$ref": "#/components/schemas/Billing" - }, - "productId": { - "type": "string" - }, - "productOnBoardingStatus": { - "type": "string", - "enum": [ - "ACTIVE", - "DELETED", - "PENDING", - "REJECTED", - "SUSPENDED", - "TOBEVALIDATED" - ] - }, - "userRole": { - "type": "string" + "OnboardedProductResource" : { + "title" : "OnboardedProductResource", + "type" : "object", + "properties" : { + "authorized" : { + "type" : "boolean" + }, + "billing" : { + "$ref" : "#/components/schemas/Billing" + }, + "productId" : { + "type" : "string" + }, + "productOnBoardingStatus" : { + "type" : "string", + "enum" : [ "ACTIVE", "DELETED", "PENDING", "REJECTED", "SUSPENDED", "TOBEVALIDATED" ] + }, + "userRole" : { + "type" : "string" } } }, - "OnboardingRequestResource": { - "title": "OnboardingRequestResource", - "required": [ - "institutionInfo", - "status" - ], - "type": "object", - "properties": { - "admins": { - "type": "array", - "description": "Administrators specific data", - "items": { - "$ref": "#/components/schemas/UserInfo" - } - }, - "institutionInfo": { - "description": "Institution specific data", - "$ref": "#/components/schemas/InstitutionInfo" - }, - "manager": { - "description": "Manager specific data. It's required when institutionType is not PT", - "$ref": "#/components/schemas/UserInfo" - }, - "productId": { - "type": "string", - "description": "Product's identifier" - }, - "status": { - "type": "string", - "description": "Onboarding request's status", - "enum": [ - "ACTIVE", - "DELETED", - "PENDING", - "REJECTED", - "SUSPENDED", - "TOBEVALIDATED" - ] + "OnboardingRequestResource" : { + "title" : "OnboardingRequestResource", + "required" : [ "institutionInfo", "status" ], + "type" : "object", + "properties" : { + "admins" : { + "type" : "array", + "description" : "Administrators specific data", + "items" : { + "$ref" : "#/components/schemas/UserInfo" + } + }, + "institutionInfo" : { + "description" : "Institution specific data", + "$ref" : "#/components/schemas/InstitutionInfo" + }, + "manager" : { + "description" : "Manager specific data. It's required when institutionType is not PT", + "$ref" : "#/components/schemas/UserInfo" + }, + "productId" : { + "type" : "string", + "description" : "Product's identifier" + }, + "status" : { + "type" : "string", + "description" : "Onboarding request's status", + "enum" : [ "ACTIVE", "DELETED", "PENDING", "REJECTED", "SUSPENDED", "TOBEVALIDATED" ] } } }, - "PageOfUserGroupPlainResource": { - "title": "PageOfUserGroupPlainResource", - "required": [ - "content", - "number", - "size", - "totalElements", - "totalPages" - ], - "type": "object", - "properties": { - "content": { - "type": "array", - "description": "The page content", - "items": { - "$ref": "#/components/schemas/UserGroupPlainResource" - } - }, - "number": { - "type": "integer", - "description": "The number of the current page", - "format": "int32" - }, - "size": { - "type": "integer", - "description": "The size of the page", - "format": "int32" - }, - "totalElements": { - "type": "integer", - "description": "The total amount of elements", - "format": "int64" - }, - "totalPages": { - "type": "integer", - "description": "The number of total pages", - "format": "int32" + "PageOfUserGroupPlainResource" : { + "title" : "PageOfUserGroupPlainResource", + "required" : [ "content", "number", "size", "totalElements", "totalPages" ], + "type" : "object", + "properties" : { + "content" : { + "type" : "array", + "description" : "The page content", + "items" : { + "$ref" : "#/components/schemas/UserGroupPlainResource" + } + }, + "number" : { + "type" : "integer", + "description" : "The number of the current page", + "format" : "int32" + }, + "size" : { + "type" : "integer", + "description" : "The size of the page", + "format" : "int32" + }, + "totalElements" : { + "type" : "integer", + "description" : "The total amount of elements", + "format" : "int64" + }, + "totalPages" : { + "type" : "integer", + "description" : "The number of total pages", + "format" : "int32" } } }, - "PartyProduct": { - "title": "PartyProduct", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "onBoardingStatus": { - "type": "string", - "enum": [ - "ACTIVE", - "INACTIVE", - "PENDING" - ] + "PartyProduct" : { + "title" : "PartyProduct", + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "onBoardingStatus" : { + "type" : "string", + "enum" : [ "ACTIVE", "INACTIVE", "PENDING" ] } } }, - "PaymentServiceProvider": { - "title": "PaymentServiceProvider", - "type": "object", - "properties": { - "abiCode": { - "type": "string" + "PaymentServiceProvider" : { + "title" : "PaymentServiceProvider", + "type" : "object", + "properties" : { + "abiCode" : { + "type" : "string" }, - "businessRegisterNumber": { - "type": "string" + "businessRegisterNumber" : { + "type" : "string" }, - "legalRegisterName": { - "type": "string" + "legalRegisterName" : { + "type" : "string" }, - "legalRegisterNumber": { - "type": "string" + "legalRegisterNumber" : { + "type" : "string" }, - "vatNumberGroup": { - "type": "boolean" + "vatNumberGroup" : { + "type" : "boolean" } } }, - "PlainUserResource": { - "title": "PlainUserResource", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "surname": { - "type": "string", - "description": "User's surname" + "PlainUserResource" : { + "title" : "PlainUserResource", + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" } } }, - "Problem": { - "title": "Problem", - "required": [ - "status", - "title" - ], - "type": "object", - "properties": { - "detail": { - "type": "string", - "description": "Human-readable description of this specific problem." - }, - "instance": { - "type": "string", - "description": "A URI that describes where the problem occurred." - }, - "invalidParams": { - "type": "array", - "description": "A list of invalid parameters details.", - "items": { - "$ref": "#/components/schemas/InvalidParam" - } - }, - "status": { - "type": "integer", - "description": "The HTTP status code.", - "format": "int32", - "example": 500 - }, - "title": { - "type": "string", - "description": "Short human-readable summary of the problem." - }, - "type": { - "type": "string", - "description": "A URL to a page with more details regarding the problem." + "Problem" : { + "title" : "Problem", + "required" : [ "status", "title" ], + "type" : "object", + "properties" : { + "detail" : { + "type" : "string", + "description" : "Human-readable description of this specific problem." + }, + "instance" : { + "type" : "string", + "description" : "A URI that describes where the problem occurred." + }, + "invalidParams" : { + "type" : "array", + "description" : "A list of invalid parameters details.", + "items" : { + "$ref" : "#/components/schemas/InvalidParam" + } + }, + "status" : { + "type" : "integer", + "description" : "The HTTP status code.", + "format" : "int32", + "example" : 500 + }, + "title" : { + "type" : "string", + "description" : "Short human-readable summary of the problem." + }, + "type" : { + "type" : "string", + "description" : "A URL to a page with more details regarding the problem." } }, - "description": "A \"problem detail\" as a way to carry machine-readable details of errors (https://datatracker.ietf.org/doc/html/rfc7807)" + "description" : "A \"problem detail\" as a way to carry machine-readable details of errors (https://datatracker.ietf.org/doc/html/rfc7807)" }, - "ProductInfoResource": { - "title": "ProductInfoResource", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Product's unique identifier" + "ProductInfoResource" : { + "title" : "ProductInfoResource", + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "Product's unique identifier" }, - "roleInfos": { - "type": "array", - "description": "User's role infos in product", - "items": { - "$ref": "#/components/schemas/ProductRoleInfoResource" + "roleInfos" : { + "type" : "array", + "description" : "User's role infos in product", + "items" : { + "$ref" : "#/components/schemas/ProductRoleInfoResource" } }, - "title": { - "type": "string", - "description": "Product's title" + "title" : { + "type" : "string", + "description" : "Product's title" } } }, - "ProductRoleInfoResource": { - "title": "ProductRoleInfoResource", - "type": "object", - "properties": { - "relationshipId": { - "type": "string", - "description": "Unique relationship identifier between User and Product" - }, - "role": { - "type": "string", - "description": "User's role in product" - }, - "selcRole": { - "type": "string", - "description": "User's role", - "enum": [ - "ADMIN", - "LIMITED" - ] - }, - "status": { - "type": "string", - "description": "User's status" + "ProductRoleInfoResource" : { + "title" : "ProductRoleInfoResource", + "type" : "object", + "properties" : { + "relationshipId" : { + "type" : "string", + "description" : "Unique relationship identifier between User and Product" + }, + "role" : { + "type" : "string", + "description" : "User's role in product" + }, + "selcRole" : { + "type" : "string", + "description" : "User's role", + "enum" : [ "ADMIN", "LIMITED" ] + }, + "status" : { + "type" : "string", + "description" : "User's status" } } }, - "ProductRoleMappingsResource": { - "title": "ProductRoleMappingsResource", - "type": "object", - "properties": { - "multiroleAllowed": { - "type": "boolean", - "description": "Indicates if an User can have more than one product role", - "example": false - }, - "partyRole": { - "type": "string", - "description": "Party role", - "enum": [ - "DELEGATE", - "MANAGER", - "OPERATOR", - "SUB_DELEGATE" - ] - }, - "productRoles": { - "type": "array", - "description": "Available product roles", - "items": { - "$ref": "#/components/schemas/ProductRoleResource" - } - }, - "selcRole": { - "type": "string", - "description": "Self Care role", - "enum": [ - "ADMIN", - "LIMITED" - ] + "ProductRoleMappingsResource" : { + "title" : "ProductRoleMappingsResource", + "type" : "object", + "properties" : { + "multiroleAllowed" : { + "type" : "boolean", + "description" : "Indicates if an User can have more than one product role", + "example" : false + }, + "partyRole" : { + "type" : "string", + "description" : "Party role", + "enum" : [ "DELEGATE", "MANAGER", "OPERATOR", "SUB_DELEGATE" ] + }, + "productRoles" : { + "type" : "array", + "description" : "Available product roles", + "items" : { + "$ref" : "#/components/schemas/ProductRoleResource" + } + }, + "selcRole" : { + "type" : "string", + "description" : "Self Care role", + "enum" : [ "ADMIN", "LIMITED" ] } } }, - "ProductRoleResource": { - "title": "ProductRoleResource", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Product role internal code" - }, - "description": { - "type": "string", - "description": "Product role description" - }, - "label": { - "type": "string", - "description": "Product role label" + "ProductRoleResource" : { + "title" : "ProductRoleResource", + "type" : "object", + "properties" : { + "code" : { + "type" : "string", + "description" : "Product role internal code" + }, + "description" : { + "type" : "string", + "description" : "Product role description" + }, + "label" : { + "type" : "string", + "description" : "Product role label" } } }, - "ProductUserResource": { - "title": "ProductUserResource", - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's personal email" - }, - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "product": { - "description": "Authorized user product", - "$ref": "#/components/schemas/ProductInfoResource" - }, - "role": { - "type": "string", - "description": "User's role", - "enum": [ - "ADMIN", - "LIMITED" - ] - }, - "status": { - "type": "string", - "description": "User's status" - }, - "surname": { - "type": "string", - "description": "User's surname" + "ProductUserResource" : { + "title" : "ProductUserResource", + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's personal email" + }, + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "product" : { + "description" : "Authorized user product", + "$ref" : "#/components/schemas/ProductInfoResource" + }, + "role" : { + "type" : "string", + "description" : "User's role", + "enum" : [ "ADMIN", "LIMITED" ] + }, + "status" : { + "type" : "string", + "description" : "User's status" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" } } }, - "ProductsResource": { - "title": "ProductsResource", - "type": "object", - "properties": { - "activatedAt": { - "type": "string", - "description": "Date the products was activated", - "format": "date-time" - }, - "authorized": { - "type": "boolean", - "description": "flag indicating whether the logged user has the authorization to manage the product", - "example": false - }, - "backOfficeEnvironmentConfigurations": { - "type": "array", - "description": "Environment-specific configurations for back-office redirection with Token Exchange", - "items": { - "$ref": "#/components/schemas/BackOfficeConfigurationsResource" - } - }, - "children": { - "type": "array", - "description": "Product's sub products list", - "items": { - "$ref": "#/components/schemas/SubProductResource" - } - }, - "delegable": { - "type": "boolean", - "description": "If a product is delegable to a technical partner", - "example": false - }, - "description": { - "type": "string", - "description": "Product's description" - }, - "id": { - "type": "string", - "description": "Product's unique identifier" - }, - "imageUrl": { - "type": "string", - "description": "Product's depict image" - }, - "invoiceable": { - "type": "boolean", - "description": "If a product is invoiceable", - "example": false - }, - "logo": { - "type": "string", - "description": "Product's logo" - }, - "logoBgColor": { - "type": "string", - "description": "Product logo's background color" - }, - "productOnBoardingStatus": { - "type": "string", - "description": "Product's onBoarding status", - "enum": [ - "ACTIVE", - "INACTIVE", - "PENDING" - ] - }, - "status": { - "type": "string", - "description": "Product's status", - "enum": [ - "ACTIVE", - "INACTIVE", - "PHASE_OUT", - "TESTING" - ] - }, - "title": { - "type": "string", - "description": "Product's title" - }, - "urlBO": { - "type": "string", - "description": "URL that redirects to the back-office section, where is possible to manage the product" - }, - "urlPublic": { - "type": "string", - "description": "URL that redirects to the public information webpage of the product" - }, - "userRole": { - "type": "string", - "description": "Logged user's role" + "ProductsResource" : { + "title" : "ProductsResource", + "type" : "object", + "properties" : { + "activatedAt" : { + "type" : "string", + "description" : "Date the products was activated", + "format" : "date-time" + }, + "authorized" : { + "type" : "boolean", + "description" : "flag indicating whether the logged user has the authorization to manage the product", + "example" : false + }, + "backOfficeEnvironmentConfigurations" : { + "type" : "array", + "description" : "Environment-specific configurations for back-office redirection with Token Exchange", + "items" : { + "$ref" : "#/components/schemas/BackOfficeConfigurationsResource" + } + }, + "children" : { + "type" : "array", + "description" : "Product's sub products list", + "items" : { + "$ref" : "#/components/schemas/SubProductResource" + } + }, + "delegable" : { + "type" : "boolean", + "description" : "If a product is delegable to a technical partner", + "example" : false + }, + "description" : { + "type" : "string", + "description" : "Product's description" + }, + "id" : { + "type" : "string", + "description" : "Product's unique identifier" + }, + "imageUrl" : { + "type" : "string", + "description" : "Product's depict image" + }, + "invoiceable" : { + "type" : "boolean", + "description" : "If a product is invoiceable", + "example" : false + }, + "logo" : { + "type" : "string", + "description" : "Product's logo" + }, + "logoBgColor" : { + "type" : "string", + "description" : "Product logo's background color" + }, + "productOnBoardingStatus" : { + "type" : "string", + "description" : "Product's onBoarding status", + "enum" : [ "ACTIVE", "INACTIVE", "PENDING" ] + }, + "status" : { + "type" : "string", + "description" : "Product's status", + "enum" : [ "ACTIVE", "INACTIVE", "PHASE_OUT", "TESTING" ] + }, + "title" : { + "type" : "string", + "description" : "Product's title" + }, + "urlBO" : { + "type" : "string", + "description" : "URL that redirects to the back-office section, where is possible to manage the product" + }, + "urlPublic" : { + "type" : "string", + "description" : "URL that redirects to the public information webpage of the product" + }, + "userRole" : { + "type" : "string", + "description" : "Logged user's role" } } }, - "PspData": { - "title": "PspData", - "required": [ - "abiCode", - "businessRegisterNumber", - "legalRegisterName", - "legalRegisterNumber", - "vatNumberGroup" - ], - "type": "object", - "properties": { - "abiCode": { - "type": "string", - "description": "PSP's ABI code" - }, - "businessRegisterNumber": { - "type": "string", - "description": "PSP's Business Register number" - }, - "legalRegisterName": { - "type": "string", - "description": "PSP's legal register name" - }, - "legalRegisterNumber": { - "type": "string", - "description": "PSP's legal register number" - }, - "vatNumberGroup": { - "type": "boolean", - "description": "PSP's Vat Number group", - "example": false + "PspData" : { + "title" : "PspData", + "required" : [ "abiCode", "businessRegisterNumber", "legalRegisterName", "legalRegisterNumber", "vatNumberGroup" ], + "type" : "object", + "properties" : { + "abiCode" : { + "type" : "string", + "description" : "PSP's ABI code" + }, + "businessRegisterNumber" : { + "type" : "string", + "description" : "PSP's Business Register number" + }, + "legalRegisterName" : { + "type" : "string", + "description" : "PSP's legal register name" + }, + "legalRegisterNumber" : { + "type" : "string", + "description" : "PSP's legal register number" + }, + "vatNumberGroup" : { + "type" : "boolean", + "description" : "PSP's Vat Number group", + "example" : false } } }, - "RootParentResponse": { - "title": "RootParentResponse", - "type": "object", - "properties": { - "description": { - "type": "string" + "RootParentResponse" : { + "title" : "RootParentResponse", + "type" : "object", + "properties" : { + "description" : { + "type" : "string" }, - "id": { - "type": "string" + "id" : { + "type" : "string" } } }, - "SearchUserDto": { - "title": "SearchUserDto", - "required": [ - "fiscalCode" - ], - "type": "object", - "properties": { - "fiscalCode": { - "type": "string", - "description": "User's fiscal code" + "SearchUserDto" : { + "title" : "SearchUserDto", + "required" : [ "fiscalCode" ], + "type" : "object", + "properties" : { + "fiscalCode" : { + "type" : "string", + "description" : "User's fiscal code" } } }, - "SubProductResource": { - "title": "SubProductResource", - "type": "object", - "properties": { - "delegable": { - "type": "boolean", - "description": "If a product is delegable to a technical partner", - "example": false - }, - "description": { - "type": "string", - "description": "Product's description" - }, - "id": { - "type": "string", - "description": "Product's unique identifier" - }, - "imageUrl": { - "type": "string", - "description": "Product's depict image" - }, - "invoiceable": { - "type": "boolean", - "description": "If a product is invoiceable", - "example": false - }, - "logo": { - "type": "string", - "description": "Product's logo" - }, - "logoBgColor": { - "type": "string", - "description": "Product logo's background color" - }, - "productOnBoardingStatus": { - "type": "string", - "description": "Product's onBoarding status", - "enum": [ - "ACTIVE", - "INACTIVE", - "PENDING" - ] - }, - "status": { - "type": "string", - "description": "Product's status", - "enum": [ - "ACTIVE", - "INACTIVE", - "PHASE_OUT", - "TESTING" - ] - }, - "title": { - "type": "string", - "description": "Product's title" - }, - "urlPublic": { - "type": "string", - "description": "URL that redirects to the public information webpage of the product" + "SubProductResource" : { + "title" : "SubProductResource", + "type" : "object", + "properties" : { + "delegable" : { + "type" : "boolean", + "description" : "If a product is delegable to a technical partner", + "example" : false + }, + "description" : { + "type" : "string", + "description" : "Product's description" + }, + "id" : { + "type" : "string", + "description" : "Product's unique identifier" + }, + "imageUrl" : { + "type" : "string", + "description" : "Product's depict image" + }, + "invoiceable" : { + "type" : "boolean", + "description" : "If a product is invoiceable", + "example" : false + }, + "logo" : { + "type" : "string", + "description" : "Product's logo" + }, + "logoBgColor" : { + "type" : "string", + "description" : "Product logo's background color" + }, + "productOnBoardingStatus" : { + "type" : "string", + "description" : "Product's onBoarding status", + "enum" : [ "ACTIVE", "INACTIVE", "PENDING" ] + }, + "status" : { + "type" : "string", + "description" : "Product's status", + "enum" : [ "ACTIVE", "INACTIVE", "PHASE_OUT", "TESTING" ] + }, + "title" : { + "type" : "string", + "description" : "Product's title" + }, + "urlPublic" : { + "type" : "string", + "description" : "URL that redirects to the public information webpage of the product" } } }, - "SupportContact": { - "title": "SupportContact", - "type": "object", - "properties": { - "supportEmail": { - "type": "string" + "SupportContact" : { + "title" : "SupportContact", + "type" : "object", + "properties" : { + "supportEmail" : { + "type" : "string" }, - "supportPhone": { - "type": "string" + "supportPhone" : { + "type" : "string" } } }, - "SupportContactResource": { - "title": "SupportContactResource", - "type": "object", - "properties": { - "supportEmail": { - "type": "string", - "description": "Institution's support email contact" - }, - "supportPhone": { - "type": "string", - "description": "Institution's support phone contact" + "SupportContactResource" : { + "title" : "SupportContactResource", + "type" : "object", + "properties" : { + "supportEmail" : { + "type" : "string", + "description" : "Institution's support email contact" + }, + "supportPhone" : { + "type" : "string", + "description" : "Institution's support phone contact" } } }, - "SupportRequestDto": { - "title": "SupportRequestDto", - "required": [ - "email" - ], - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's email", - "format": "email", - "example": "email@example.com" - }, - "institutionId": { - "type": "string", - "description": "Institution's identifier" - }, - "productId": { - "type": "string", - "description": "Product's identifier" - }, - "userId": { - "type": "string", - "description": "User's identifier" + "SupportRequestDto" : { + "title" : "SupportRequestDto", + "required" : [ "email" ], + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's email", + "format" : "email", + "example" : "email@example.com" + }, + "institutionId" : { + "type" : "string", + "description" : "Institution's identifier" + }, + "productId" : { + "type" : "string", + "description" : "Product's identifier" + }, + "userId" : { + "type" : "string", + "description" : "User's identifier" } } }, - "UpdateInstitutionDto": { - "title": "UpdateInstitutionDto", - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "Institution's description" - }, - "digitalAddress": { - "type": "string", - "description": "Institution's email address" + "SupportResponse" : { + "title" : "SupportResponse", + "type" : "object", + "properties" : { + "redirectUrl" : { + "type" : "string" } } }, - "UpdateUserDto": { - "title": "UpdateUserDto", - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's institutional email", - "format": "email", - "example": "email@example.com" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "surname": { - "type": "string", - "description": "User's surname" + "UpdateInstitutionDto" : { + "title" : "UpdateInstitutionDto", + "type" : "object", + "properties" : { + "description" : { + "type" : "string", + "description" : "Institution's description" + }, + "digitalAddress" : { + "type" : "string", + "description" : "Institution's email address" } } }, - "UpdateUserGroupDto": { - "title": "UpdateUserGroupDto", - "required": [ - "description", - "members", - "name" - ], - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "Users group's description" - }, - "members": { - "uniqueItems": true, - "type": "array", - "description": "List of all the members of the group", - "items": { - "type": "string", - "format": "uuid" - } - }, - "name": { - "type": "string", - "description": "Users group's name" + "UpdateUserDto" : { + "title" : "UpdateUserDto", + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's institutional email", + "format" : "email", + "example" : "email@example.com" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" } } }, - "UserDto": { - "title": "UserDto", - "required": [ - "email", - "fiscalCode", - "name", - "surname" - ], - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's institutional email", - "format": "email", - "example": "email@example.com" - }, - "fiscalCode": { - "type": "string", - "description": "User's fiscal code" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "surname": { - "type": "string", - "description": "User's surname" + "UpdateUserGroupDto" : { + "title" : "UpdateUserGroupDto", + "required" : [ "description", "members", "name" ], + "type" : "object", + "properties" : { + "description" : { + "type" : "string", + "description" : "Users group's description" + }, + "members" : { + "uniqueItems" : true, + "type" : "array", + "description" : "List of all the members of the group", + "items" : { + "type" : "string", + "format" : "uuid" + } + }, + "name" : { + "type" : "string", + "description" : "Users group's name" } } }, - "UserGroupIdResource": { - "title": "UserGroupIdResource", - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Users group's unique identifier" + "UserDto" : { + "title" : "UserDto", + "required" : [ "email", "fiscalCode", "name", "surname" ], + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's institutional email", + "format" : "email", + "example" : "email@example.com" + }, + "fiscalCode" : { + "type" : "string", + "description" : "User's fiscal code" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" } } }, - "UserGroupPlainResource": { - "title": "UserGroupPlainResource", - "type": "object", - "properties": { - "createdAt": { - "type": "string", - "description": "Date on which the group was created", - "format": "date-time" - }, - "createdBy": { - "type": "string", - "description": "User by which the group was created", - "format": "uuid" - }, - "description": { - "type": "string", - "description": "Users group's description" - }, - "id": { - "type": "string", - "description": "Users group's unique identifier" - }, - "institutionId": { - "type": "string", - "description": "Users group's institutionId" - }, - "membersCount": { - "type": "integer", - "description": "Number all the members of the group", - "format": "int32" - }, - "modifiedAt": { - "type": "string", - "description": "Date on which the group was modified", - "format": "date-time" - }, - "modifiedBy": { - "type": "string", - "description": "User by which the group was modified", - "format": "uuid" - }, - "name": { - "type": "string", - "description": "Users group's name" - }, - "productId": { - "type": "string", - "description": "Users group's productId" - }, - "status": { - "type": "string", - "description": "Users group's status", - "enum": [ - "ACTIVE", - "DELETED", - "SUSPENDED" - ] + "UserGroupIdResource" : { + "title" : "UserGroupIdResource", + "required" : [ "id" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "Users group's unique identifier" } } }, - "UserGroupResource": { - "title": "UserGroupResource", - "type": "object", - "properties": { - "createdAt": { - "type": "string", - "description": "Date on which the group was created", - "format": "date-time" - }, - "createdBy": { - "description": "User by which the group was created", - "$ref": "#/components/schemas/PlainUserResource" - }, - "description": { - "type": "string", - "description": "Users group's description" - }, - "id": { - "type": "string", - "description": "Users group's unique identifier" - }, - "institutionId": { - "type": "string", - "description": "Users group's institutionId" - }, - "members": { - "type": "array", - "description": "List of all the members of the group", - "items": { - "$ref": "#/components/schemas/ProductUserResource" - } - }, - "modifiedAt": { - "type": "string", - "description": "Date on which the group was modified", - "format": "date-time" - }, - "modifiedBy": { - "description": "User by which the group was modified", - "$ref": "#/components/schemas/PlainUserResource" - }, - "name": { - "type": "string", - "description": "Users group's name" - }, - "productId": { - "type": "string", - "description": "Users group's productId" - }, - "status": { - "type": "string", - "description": "Users group's status", - "enum": [ - "ACTIVE", - "DELETED", - "SUSPENDED" - ] + "UserGroupPlainResource" : { + "title" : "UserGroupPlainResource", + "type" : "object", + "properties" : { + "createdAt" : { + "type" : "string", + "description" : "Date on which the group was created", + "format" : "date-time" + }, + "createdBy" : { + "type" : "string", + "description" : "User by which the group was created", + "format" : "uuid" + }, + "description" : { + "type" : "string", + "description" : "Users group's description" + }, + "id" : { + "type" : "string", + "description" : "Users group's unique identifier" + }, + "institutionId" : { + "type" : "string", + "description" : "Users group's institutionId" + }, + "membersCount" : { + "type" : "integer", + "description" : "Number all the members of the group", + "format" : "int32" + }, + "modifiedAt" : { + "type" : "string", + "description" : "Date on which the group was modified", + "format" : "date-time" + }, + "modifiedBy" : { + "type" : "string", + "description" : "User by which the group was modified", + "format" : "uuid" + }, + "name" : { + "type" : "string", + "description" : "Users group's name" + }, + "productId" : { + "type" : "string", + "description" : "Users group's productId" + }, + "status" : { + "type" : "string", + "description" : "Users group's status", + "enum" : [ "ACTIVE", "DELETED", "SUSPENDED" ] } } }, - "UserIdResource": { - "title": "UserIdResource", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" + "UserGroupResource" : { + "title" : "UserGroupResource", + "type" : "object", + "properties" : { + "createdAt" : { + "type" : "string", + "description" : "Date on which the group was created", + "format" : "date-time" + }, + "createdBy" : { + "description" : "User by which the group was created", + "$ref" : "#/components/schemas/PlainUserResource" + }, + "description" : { + "type" : "string", + "description" : "Users group's description" + }, + "id" : { + "type" : "string", + "description" : "Users group's unique identifier" + }, + "institutionId" : { + "type" : "string", + "description" : "Users group's institutionId" + }, + "members" : { + "type" : "array", + "description" : "List of all the members of the group", + "items" : { + "$ref" : "#/components/schemas/ProductUserResource" + } + }, + "modifiedAt" : { + "type" : "string", + "description" : "Date on which the group was modified", + "format" : "date-time" + }, + "modifiedBy" : { + "description" : "User by which the group was modified", + "$ref" : "#/components/schemas/PlainUserResource" + }, + "name" : { + "type" : "string", + "description" : "Users group's name" + }, + "productId" : { + "type" : "string", + "description" : "Users group's productId" + }, + "status" : { + "type" : "string", + "description" : "Users group's status", + "enum" : [ "ACTIVE", "DELETED", "SUSPENDED" ] } } }, - "UserInfo": { - "title": "UserInfo", - "required": [ - "email", - "fiscalCode", - "id", - "name", - "surname" - ], - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "User's institutional email" - }, - "fiscalCode": { - "type": "string", - "description": "User's fiscal code" - }, - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" - }, - "name": { - "type": "string", - "description": "User's name" - }, - "surname": { - "type": "string", - "description": "User's surname" + "UserIdResource" : { + "title" : "UserIdResource", + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" } } }, - "UserProductRoles": { - "title": "UserProductRoles", - "type": "object", - "properties": { - "productRoles": { - "uniqueItems": true, - "type": "array", - "items": { - "type": "string" + "UserInfo" : { + "title" : "UserInfo", + "required" : [ "email", "fiscalCode", "id", "name", "surname" ], + "type" : "object", + "properties" : { + "email" : { + "type" : "string", + "description" : "User's institutional email" + }, + "fiscalCode" : { + "type" : "string", + "description" : "User's fiscal code" + }, + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" + }, + "name" : { + "type" : "string", + "description" : "User's name" + }, + "surname" : { + "type" : "string", + "description" : "User's surname" + } + } + }, + "UserProductRoles" : { + "title" : "UserProductRoles", + "type" : "object", + "properties" : { + "productRoles" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" } } } }, - "UserResource": { - "title": "UserResource", - "type": "object", - "properties": { - "email": { - "description": "User's institutional email", - "$ref": "#/components/schemas/CertifiedFieldResourceOfstring" - }, - "familyName": { - "description": "User's surname", - "$ref": "#/components/schemas/CertifiedFieldResourceOfstring" - }, - "fiscalCode": { - "type": "string", - "description": "User's fiscal code" - }, - "id": { - "type": "string", - "description": "User's unique identifier", - "format": "uuid" - }, - "name": { - "description": "User's name", - "$ref": "#/components/schemas/CertifiedFieldResourceOfstring" + "UserResource" : { + "title" : "UserResource", + "type" : "object", + "properties" : { + "email" : { + "description" : "User's institutional email", + "$ref" : "#/components/schemas/CertifiedFieldResourceOfstring" + }, + "familyName" : { + "description" : "User's surname", + "$ref" : "#/components/schemas/CertifiedFieldResourceOfstring" + }, + "fiscalCode" : { + "type" : "string", + "description" : "User's fiscal code" + }, + "id" : { + "type" : "string", + "description" : "User's unique identifier", + "format" : "uuid" + }, + "name" : { + "description" : "User's name", + "$ref" : "#/components/schemas/CertifiedFieldResourceOfstring" + }, + "workContacts" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/WorkContactResource" + }, + "description" : "User's workcontacts, contains the emails associated to every institution the user is assigned to" + } + } + }, + "WorkContactResource" : { + "title" : "WorkContactResource", + "type" : "object", + "properties" : { + "email" : { + "description" : "User's institutional email", + "$ref" : "#/components/schemas/CertifiedFieldResourceOfstring" } } } }, - "securitySchemes": { - "bearerAuth": { - "type": "http", - "description": "A bearer token in the format of a JWS and conformed to the specifications included in [RFC8725](https://tools.ietf.org/html/RFC8725)", - "scheme": "bearer", - "bearerFormat": "JWT" + "securitySchemes" : { + "bearerAuth" : { + "type" : "http", + "description" : "A bearer token in the format of a JWS and conformed to the specifications included in [RFC8725](https://tools.ietf.org/html/RFC8725)", + "scheme" : "bearer", + "bearerFormat" : "JWT" } } } diff --git a/openApi/generated-dashboard/dashboard-swagger20.json b/openApi/generated-dashboard/dashboard-swagger20.json index 4c84399a..9f0de729 100644 --- a/openApi/generated-dashboard/dashboard-swagger20.json +++ b/openApi/generated-dashboard/dashboard-swagger20.json @@ -656,67 +656,6 @@ "summary": "Retrieve institution's delegations" } }, - "/v1/institutions/{institutionId}/products": { - "get": { - "produces": [ - "application/json", - "application/problem+json" - ], - "parameters": [ - { - "description": "Institution's unique internal identifier", - "in": "path", - "name": "institutionId", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK", - "schema":{"$ref":"#/definitions/ProductsResourceArray"} - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/Problem" - } - } - }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ], - "tags": [ - "institutions" - ], - "deprecated": true, - "description": "Service to get all the products related to a specific institution", - "operationId": "getInstitutionProductsUsingGET", - "summary": "getInstitutionProducts" - } - }, "/v1/institutions/{institutionId}/products/{productId}/users": { "get": { "produces": [ @@ -1792,6 +1731,96 @@ "summary": "sendSupportRequest" } }, + "/v1/support/request": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "in": "query", + "name": "authenticated", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "authorities[0].authority", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "credentials", + "required": false, + "type": "object" + }, + { + "in": "query", + "name": "details", + "required": false, + "type": "object" + }, + { + "in": "query", + "name": "principal", + "required": false, + "type": "object" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/SupportRequestDto" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SupportResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "support" + ], + "deprecated": true, + "description": "Service to retrieve Support contact's form", + "operationId": "getSupportRedirectUrlUsingPOST", + "summary": "getSupportRedirectUrl" + } + }, "/v1/token/exchange": { "get": { "produces": [ @@ -1933,11 +1962,1411 @@ "token" ], "description": "Service to create a 'Billing Token' based on a Self Care session token", - "operationId": "billingTokenUsingGET", + "operationId": "billingTokenUsingGET", + "summary": "billingToken" + } + }, + "/v1/user-groups": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's institutionId", + "in": "query", + "name": "institutionId", + "required": false, + "type": "string" + }, + { + "description": "The page number to access (0 indexed, defaults to 0)", + "format": "int32", + "in": "query", + "name": "page", + "required": false, + "type": "integer" + }, + { + "description": "Number of records per page (defaults to 20, max 2000)", + "format": "int32", + "in": "query", + "name": "size", + "required": false, + "type": "integer" + }, + { + "collectionFormat": "multi", + "description": "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "items": { + "type": "string" + }, + "name": "sort", + "required": false, + "type": "array" + }, + { + "description": "Users group's productId", + "in": "query", + "name": "productId", + "required": false, + "type": "string" + }, + { + "description": "User's unique identifier", + "format": "uuid", + "in": "query", + "name": "userId", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PageOfUserGroupPlainResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service that allows to get a list of UserGroup entities", + "operationId": "getUserGroupsUsingGET", + "summary": "getUserGroups" + } + }, + "/v1/user-groups/": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/CreateUserGroupDto" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/UserGroupIdResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "409": { + "description": "Conflict" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service that allows the insert of a new occurrence for the UserGroup entity", + "operationId": "createUserGroupUsingPOST", + "summary": "createUserGroup" + } + }, + "/v1/user-groups/{id}": { + "delete": { + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service that allows the deletion of a specific occurrence for the UserGroup entity by an Admin user", + "operationId": "deleteUserGroupUsingDELETE", + "summary": "deleteUserGroup" + }, + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Users group's institutionId", + "in": "query", + "name": "institutionId", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UserGroupResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service to get a specific UserGroup entity", + "operationId": "getUserGroupByIdUsingGET", + "summary": "getUserGroupById" + }, + "put": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/UpdateUserGroupDto" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "409": { + "description": "Conflict" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service that allows the modification of a specific occurrence for the UserGroup entity by an Admin user", + "operationId": "updateUserGroupUsingPUT", + "summary": "updateUserGroup" + } + }, + "/v1/user-groups/{id}/activate": { + "post": { + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service that allows the activation of a specific occurrence for the UserGroup entity by an Admin user", + "operationId": "activateUserGroupUsingPOST", + "summary": "activateUserGroup" + } + }, + "/v1/user-groups/{id}/members/{userId}": { + "post": { + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "User's unique identifier", + "format": "uuid", + "in": "path", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service to add a member to a specific UserGroup entity", + "operationId": "addMemberToUserGroupUsingPOST", + "summary": "addMemberToUserGroup" + } + }, + "/v1/user-groups/{id}/suspend": { + "post": { + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service that allows the suspension of a specific occurrence for the UserGroup entity by an Admin user", + "operationId": "suspendUserGroupUsingPOST", + "summary": "suspendUserGroup" + } + }, + "/v1/user-groups/{userGroupId}/members/{userId}": { + "delete": { + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "Users group's unique identifier", + "in": "path", + "name": "userGroupId", + "required": true, + "type": "string" + }, + { + "description": "User's unique identifier", + "format": "uuid", + "in": "path", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user-groups" + ], + "description": "Service to delete a member from a specific UserGroup entity", + "operationId": "deleteMemberFromUserGroupUsingDELETE", + "summary": "deleteMemberFromUserGroup" + } + }, + "/v1/users": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/UserDto" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/UserIdResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user" + ], + "description": "Save new user", + "operationId": "saveUserUsingPOST", + "summary": "saveUser" + } + }, + "/v1/users/search": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/SearchUserDto" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UserResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user" + ], + "description": "Retrieve the user for a given fiscal code", + "operationId": "searchUsingPOST", + "summary": "search" + } + }, + "/v1/users/{id}": { + "delete": { + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "User's unique identifier", + "format": "uuid", + "in": "path", + "name": "id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user" + ], + "description": "Delete user using internal id", + "operationId": "deleteUserByIdUsingDELETE", + "summary": "deleteUserById" + }, + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "User's unique identifier", + "format": "uuid", + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UserResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user" + ], + "description": "Retrieve the user by internal id", + "operationId": "getUserByInternalIdUsingGET", + "summary": "getUserByInternalId" + }, + "put": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/problem+json" + ], + "parameters": [ + { + "description": "User's unique identifier", + "format": "uuid", + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/UpdateUserDto" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "user" + ], + "description": "Update previously added user", + "operationId": "updateUserUsingPUT", + "summary": "updateUser" + } + }, + "/v2/institutions": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "in": "query", + "name": "authenticated", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "authorities[0].authority", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "credentials", + "required": false, + "type": "object" + }, + { + "in": "query", + "name": "details", + "required": false, + "type": "object" + }, + { + "in": "query", + "name": "principal", + "required": false, + "type": "object" + } + ], + "responses": { + "200": { + "description": "OK", + "schema":{"$ref":"#/definitions/InstitutionBaseResourceArray"} + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "institutions" + ], + "description": "Service to get all the institutions related to logged user", + "operationId": "getInstitutionsUsingGET_1", + "summary": "getInstitutions" + } + }, + "/v2/institutions/{institutionId}": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Institution's unique internal identifier", + "in": "path", + "name": "institutionId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/InstitutionResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "institutions" + ], + "description": "Service to get a specific institution related to logged user", + "operationId": "getInstitutionUsingGET_1", + "summary": "getInstitution" + } + }, + "/v2/institutions/{institutionId}/users/{userId}": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "in": "query", + "name": "authenticated", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "authorities[0].authority", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "credentials", + "required": false, + "type": "object" + }, + { + "in": "query", + "name": "details", + "required": false, + "type": "object" + }, + { + "description": "Institution's unique internal identifier", + "in": "path", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "principal", + "required": false, + "type": "object" + }, + { + "description": "User's unique identifier", + "in": "path", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/InstitutionUserDetailsResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "institutions" + ], + "description": "Service to get the users with the given user id related to a specific institution", + "operationId": "getInstitutionUserUsingGET_1", + "summary": "getInstitutionUser" + } + }, + "/v2/products/{productId}/back-office": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Product's unique identifier", + "in": "path", + "name": "productId", + "required": true, + "type": "string" + }, + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "description": "Back Office environment", + "in": "query", + "name": "environment", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/STRINGWrapper" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "products" + ], + "description": "Service to trigger token exchange and redirect to product's back office URL", + "operationId": "retrieveProductBackofficeUsingGET_1", + "summary": "retrieveProductBackoffice" + } + }, + "/v2/token/exchange": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "description": "Product's unique identifier", + "in": "query", + "name": "productId", + "required": true, + "type": "string" + }, + { + "description": "Back Office environment", + "in": "query", + "name": "environment", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IdentityTokenResource" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "token" + ], + "description": "Service create an 'Identity Token' based on a Self Care session token", + "operationId": "exchangeUsingGET_1", + "summary": "exchange" + } + }, + "/v2/token/exchange/fatturazione": { + "get": { + "produces": [ + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "in": "query", + "name": "authenticated", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "authorities[0].authority", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "credentials", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "details", + "required": false, + "type": "object" + }, + { + "description": "Institution's unique internal identifier", + "in": "query", + "name": "institutionId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "name", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "principal", + "required": false, + "type": "object" + }, + { + "description": "Back Office environment", + "in": "query", + "name": "environment", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/STRINGWrapper" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/Problem" + } + } + }, + "security": [ + { + "bearerAuth": [ + "global" + ] + } + ], + "tags": [ + "token" + ], + "description": "Service to create a 'Billing Token' based on a Self Care session token", + "operationId": "billingTokenUsingGET_1", "summary": "billingToken" } }, - "/v1/user-groups": { + "/v2/user-groups": { "get": { "produces": [ "application/json", @@ -2037,11 +3466,11 @@ "user-groups" ], "description": "Service that allows to get a list of UserGroup entities", - "operationId": "getUserGroupsUsingGET", + "operationId": "getUserGroupsUsingGET_1", "summary": "getUserGroups" } }, - "/v1/user-groups/": { + "/v2/user-groups/": { "post": { "consumes": [ "application/json" @@ -2099,11 +3528,11 @@ "user-groups" ], "description": "Service that allows the insert of a new occurrence for the UserGroup entity", - "operationId": "createUserGroupUsingPOST", + "operationId": "createUserGroupUsingPOST_1", "summary": "createUserGroup" } }, - "/v1/user-groups/{id}": { + "/v2/user-groups/{id}": { "delete": { "produces": [ "application/problem+json" @@ -2151,7 +3580,7 @@ "user-groups" ], "description": "Service that allows the deletion of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "deleteUserGroupUsingDELETE", + "operationId": "deleteUserGroupUsingDELETE_1", "summary": "deleteUserGroup" }, "get": { @@ -2218,7 +3647,7 @@ "user-groups" ], "description": "Service to get a specific UserGroup entity", - "operationId": "getUserGroupByIdUsingGET", + "operationId": "getUserGroupByIdUsingGET_1", "summary": "getUserGroupById" }, "put": { @@ -2281,11 +3710,11 @@ "user-groups" ], "description": "Service that allows the modification of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "updateUserGroupUsingPUT", + "operationId": "updateUserGroupUsingPUT_1", "summary": "updateUserGroup" } }, - "/v1/user-groups/{id}/activate": { + "/v2/user-groups/{id}/activate": { "post": { "produces": [ "application/problem+json" @@ -2333,11 +3762,11 @@ "user-groups" ], "description": "Service that allows the activation of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "activateUserGroupUsingPOST", + "operationId": "activateUserGroupUsingPOST_1", "summary": "activateUserGroup" } }, - "/v1/user-groups/{id}/members/{userId}": { + "/v2/user-groups/{id}/members/{userId}": { "post": { "produces": [ "application/problem+json" @@ -2393,11 +3822,11 @@ "user-groups" ], "description": "Service to add a member to a specific UserGroup entity", - "operationId": "addMemberToUserGroupUsingPOST", + "operationId": "addMemberToUserGroupUsingPOST_1", "summary": "addMemberToUserGroup" } }, - "/v1/user-groups/{id}/suspend": { + "/v2/user-groups/{id}/suspend": { "post": { "produces": [ "application/problem+json" @@ -2445,11 +3874,11 @@ "user-groups" ], "description": "Service that allows the suspension of a specific occurrence for the UserGroup entity by an Admin user", - "operationId": "suspendUserGroupUsingPOST", + "operationId": "suspendUserGroupUsingPOST_1", "summary": "suspendUserGroup" } }, - "/v1/user-groups/{userGroupId}/members/{userId}": { + "/v2/user-groups/{userGroupId}/members/{userId}": { "delete": { "produces": [ "application/problem+json" @@ -2505,41 +3934,66 @@ "user-groups" ], "description": "Service to delete a member from a specific UserGroup entity", - "operationId": "deleteMemberFromUserGroupUsingDELETE", + "operationId": "deleteMemberFromUserGroupUsingDELETE_1", "summary": "deleteMemberFromUserGroup" } }, - "/v1/users": { - "post": { - "consumes": [ - "application/json" - ], + "/v2/users/institution/{institutionId}": { + "get": { "produces": [ "application/json", "application/problem+json" ], "parameters": [ { - "description": "Institution's unique internal identifier", "in": "query", + "name": "authenticated", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "authorities[0].authority", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "credentials", + "required": false, + "type": "object" + }, + { + "in": "query", + "name": "details", + "required": false, + "type": "object" + }, + { + "description": "Institution's unique internal identifier", + "in": "path", "name": "institutionId", "required": true, "type": "string" }, { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/UserDto" - } + "in": "query", + "name": "principal", + "required": false, + "type": "object" + }, + { + "description": "productId", + "in": "query", + "name": "productId", + "required": false, + "type": "string" } ], "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/UserIdResource" - } + "200": { + "description": "OK", + "schema":{"$ref":"#/definitions/ProductUserResourceArray"} }, "400": { "description": "Bad Request", @@ -2553,6 +4007,12 @@ "$ref": "#/definitions/Problem" } }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Problem" + } + }, "500": { "description": "Internal Server Error", "schema": { @@ -2570,12 +4030,12 @@ "tags": [ "user" ], - "description": "Save new user", - "operationId": "saveUserUsingPOST", - "summary": "saveUser" + "description": "Service to get all the users related to a specific institution", + "operationId": "getUsersUsingGET", + "summary": "getUsers" } }, - "/v1/users/search": { + "/v2/users/search": { "post": { "consumes": [ "application/json" @@ -2585,13 +4045,6 @@ "application/problem+json" ], "parameters": [ - { - "description": "Institution's unique internal identifier", - "in": "query", - "name": "institutionId", - "required": true, - "type": "string" - }, { "in": "body", "name": "body", @@ -2643,62 +4096,11 @@ "user" ], "description": "Retrieve the user for a given fiscal code", - "operationId": "searchUsingPOST", + "operationId": "searchUsingPOST_1", "summary": "search" } }, - "/v1/users/{id}": { - "delete": { - "produces": [ - "application/problem+json" - ], - "parameters": [ - { - "description": "User's unique identifier", - "format": "uuid", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/Problem" - } - } - }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ], - "tags": [ - "user" - ], - "description": "Delete user using internal id", - "operationId": "deleteUserByIdUsingDELETE", - "summary": "deleteUserById" - }, + "/v2/users/{id}": { "get": { "produces": [ "application/json", @@ -2707,18 +4109,10 @@ "parameters": [ { "description": "User's unique identifier", - "format": "uuid", "in": "path", "name": "id", "required": true, "type": "string" - }, - { - "description": "Institution's unique internal identifier", - "in": "query", - "name": "institutionId", - "required": true, - "type": "string" } ], "responses": { @@ -2764,8 +4158,8 @@ "user" ], "description": "Retrieve the user by internal id", - "operationId": "getUserByInternalIdUsingGET", - "summary": "getUserByInternalId" + "operationId": "getUserByIdUsingGET", + "summary": "getUserById" }, "put": { "consumes": [ @@ -2777,7 +4171,6 @@ "parameters": [ { "description": "User's unique identifier", - "format": "uuid", "in": "path", "name": "id", "required": true, @@ -2832,94 +4225,11 @@ "user" ], "description": "Update previously added user", - "operationId": "updateUserUsingPUT", + "operationId": "updateUserUsingPUT_1", "summary": "updateUser" } }, - "/v2/institutions": { - "get": { - "produces": [ - "application/json", - "application/problem+json" - ], - "parameters": [ - { - "in": "query", - "name": "authenticated", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "authorities[0].authority", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "credentials", - "required": false, - "type": "object" - }, - { - "in": "query", - "name": "details", - "required": false, - "type": "object" - }, - { - "in": "query", - "name": "principal", - "required": false, - "type": "object" - } - ], - "responses": { - "200": { - "description": "OK", - "schema":{"$ref":"#/definitions/InstitutionBaseResourceArray"} - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/Problem" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/Problem" - } - } - }, - "security": [ - { - "bearerAuth": [ - "global" - ] - } - ], - "tags": [ - "user" - ], - "description": "Service to get all the institutions related to logged user", - "operationId": "getInstitutionsUsingGET_1", - "summary": "getInstitutions" - } - }, - "/v2/{userId}": { + "/v2/users/{userId}": { "delete": { "produces": [ "application/problem+json" @@ -2985,7 +4295,7 @@ "summary": "deleteRelationshipById" } }, - "/v2/{userId}/activate": { + "/v2/users/{userId}/activate": { "post": { "produces": [ "application/problem+json" @@ -3051,7 +4361,7 @@ "summary": "activateRelationship" } }, - "/v2/{userId}/suspend": { + "/v2/users/{userId}/suspend": { "post": { "produces": [ "application/problem+json" @@ -3118,7 +4428,7 @@ } } }, - "definitions" : {"InstitutionBaseResourceArray":{"type": "array", "items": {"$ref": "#/definitions/InstitutionBaseResource"}},"ProductRoleMappingsResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductRoleMappingsResource"}},"BrokerResourceArray":{"type": "array", "items": {"$ref": "#/definitions/BrokerResource"}},"PartyProductArray":{"type": "array", "items": {"$ref": "#/definitions/PartyProduct"}},"InstitutionUserResourceArray":{"type": "array", "items": {"$ref": "#/definitions/InstitutionUserResource"}},"ProductUserResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductUserResource"}},"ProductsResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductsResource"}},"DelegationResourceArray":{"type": "array", "items": {"$ref": "#/definitions/DelegationResource"}},"DelegationResourceArray":{"type": "array", "items": {"$ref": "#/definitions/DelegationResource"}},"GeographicTaxonomyResourceArray":{"type": "array", "items": {"$ref": "#/definitions/GeographicTaxonomyResource"}},"ProductsResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductsResource"}},"STRINGWrapper":{"type": "string"},"STRINGArray":{"type": "array", "items": {"type": "string"}},"InstitutionBaseResourceArray":{"type": "array", "items": {"$ref": "#/definitions/InstitutionBaseResource"}}, + "definitions" : {"ProductUserResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductUserResource"}},"InstitutionBaseResourceArray":{"type": "array", "items": {"$ref": "#/definitions/InstitutionBaseResource"}},"ProductRoleMappingsResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductRoleMappingsResource"}},"BrokerResourceArray":{"type": "array", "items": {"$ref": "#/definitions/BrokerResource"}},"PartyProductArray":{"type": "array", "items": {"$ref": "#/definitions/PartyProduct"}},"InstitutionUserResourceArray":{"type": "array", "items": {"$ref": "#/definitions/InstitutionUserResource"}},"ProductUserResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductUserResource"}},"DelegationResourceArray":{"type": "array", "items": {"$ref": "#/definitions/DelegationResource"}},"DelegationResourceArray":{"type": "array", "items": {"$ref": "#/definitions/DelegationResource"}},"GeographicTaxonomyResourceArray":{"type": "array", "items": {"$ref": "#/definitions/GeographicTaxonomyResource"}},"ProductsResourceArray":{"type": "array", "items": {"$ref": "#/definitions/ProductsResource"}},"STRINGWrapper":{"type": "string"},"STRINGArray":{"type": "array", "items": {"type": "string"}},"InstitutionBaseResourceArray":{"type": "array", "items": {"$ref": "#/definitions/InstitutionBaseResource"}}, "AdditionalInformations": { "properties": { "agentOfPublicService": { @@ -3480,7 +4790,7 @@ "GeographicTaxonomyListDto": { "properties": { "geographicTaxonomyDtoList": { - "description": "List of institution's geographic taxonomies ", + "description": "List of institution's geographic taxonomies", "items": { "$ref": "#/definitions/GeographicTaxonomyDto" }, @@ -3825,7 +5135,7 @@ "type": "string" }, "products": { - "description": "${swagger.dashboard.institutions.model.products}", + "description": "Authorized user products", "items": { "$ref": "#/definitions/OnboardedProductResource" }, @@ -4624,6 +5934,15 @@ "title": "SupportRequestDto", "type": "object" }, + "SupportResponse": { + "properties": { + "redirectUrl": { + "type": "string" + } + }, + "title": "SupportResponse", + "type": "object" + }, "UpdateInstitutionDto": { "properties": { "description": { @@ -4929,10 +6248,27 @@ "name": { "$ref": "#/definitions/CertifiedFieldResourceOfstring", "description": "User's name" + }, + "workContacts": { + "additionalProperties": { + "$ref": "#/definitions/WorkContactResource" + }, + "description": "User's workcontacts, contains the emails associated to every institution the user is assigned to", + "type": "object" } }, "title": "UserResource", "type": "object" + }, + "WorkContactResource": { + "properties": { + "email": { + "$ref": "#/definitions/CertifiedFieldResourceOfstring", + "description": "User's institutional email" + } + }, + "title": "WorkContactResource", + "type": "object" } }, "securityDefinitions": { @@ -4977,7 +6313,7 @@ "name": "token" }, { - "description": "User Controller", + "description": "User V 2 Controller", "name": "user" }, { diff --git a/src/api/DashboardApiClient.ts b/src/api/DashboardApiClient.ts index cc711324..5e370dc5 100644 --- a/src/api/DashboardApiClient.ts +++ b/src/api/DashboardApiClient.ts @@ -54,6 +54,11 @@ export const DashboardApi = { return extractResponse(result, 200, onRedirectToLogin); }, + getInstitutionsV2: async (): Promise> => { + const result = await apiClient.getInstitutionsUsingGET_1({}); + return extractResponse(result, 200, onRedirectToLogin); + }, + getInstitution: async (institutionId: string): Promise => { const result = await apiClient.getInstitutionUsingGET({ institutionId, @@ -61,6 +66,13 @@ export const DashboardApi = { return extractResponse(result, 200, onRedirectToLogin); }, + getInstitutionV2: async (institutionId: string): Promise => { + const result = await apiClient.getInstitutionUsingGET_1({ + institutionId, + }); + return extractResponse(result, 200, onRedirectToLogin); + }, + getProducts: async (): Promise> => { const result = await apiClient.getProductsTreeUsingGET({}); return extractResponse(result, 200, onRedirectToLogin); @@ -100,6 +112,14 @@ export const DashboardApi = { return extractResponse(result, 200, onRedirectToLogin); }, + getBillingTokenV2: async (institutionId: string, environment?: string): Promise => { + const result = await apiClient.billingTokenUsingGET_1({ + institutionId, + environment, + }); + return extractResponse(result, 200, onRedirectToLogin); + }, + getTechnologyPartnersList: async (institutionId: string): Promise> => { const result = await apiClient.getDelegationsUsingToUsingGET({ institutionId }); return extractResponse(result, 200, onRedirectToLogin); diff --git a/src/locale/it.ts b/src/locale/it.ts index 659cff57..4b0cec10 100644 --- a/src/locale/it.ts +++ b/src/locale/it.ts @@ -82,7 +82,7 @@ export default { messageProduct: 'L’ambiente di test ti permette di conoscere <1>{{productTitle}} e fare prove in tutta sicurezza. L’ambiente di Produzione è il prodotto in esercizio effettivo.', devEnviromentMessage: - 'Ti permettere di conoscere il prodotto e fare prove in tutta sicurezza', + 'Ti permette di conoscere il prodotto e fare prove in tutta sicurezza', uatEnviromentMessage: 'Ti permette di esplorare il prodotto', prodEnviromentMessage: 'Prodotto in uso', envDevButton: 'Ambiente di Collaudo', diff --git a/src/pages/dashboardOverview/components/activeProductsSection/components/ActiveProductCardContainer.tsx b/src/pages/dashboardOverview/components/activeProductsSection/components/ActiveProductCardContainer.tsx index 9ae07960..411bab94 100644 --- a/src/pages/dashboardOverview/components/activeProductsSection/components/ActiveProductCardContainer.tsx +++ b/src/pages/dashboardOverview/components/activeProductsSection/components/ActiveProductCardContainer.tsx @@ -19,6 +19,7 @@ type Props = { products: Array; }; +// eslint-disable-next-line sonarjs/cognitive-complexity export default function ActiveProductCardContainer({ party, product, @@ -44,7 +45,11 @@ export default function ActiveProductCardContainer({ <> > => { @@ -17,6 +18,11 @@ export const fetchParties = (): Promise> => { if (process.env.REACT_APP_API_MOCK_PARTIES === 'true') { return new Promise((resolve) => resolve(mockedBaseParties)); } else { + if (ENV.USER.ENABLE_USER_V2) { + return DashboardApi.getInstitutionsV2().then((institutionResources) => + institutionResources ? institutionResources.map(institutionBaseResource2BaseParty) : [] + ); + } return DashboardApi.getInstitutions().then((institutionResources) => institutionResources ? institutionResources.map(institutionBaseResource2BaseParty) : [] ); @@ -30,6 +36,11 @@ export const fetchPartyDetails = (partyId: string): Promise => { resolve(mockedParties.find((p) => p.partyId === partyId) ?? null); }); } else { + if (ENV.USER.ENABLE_USER_V2) { + return DashboardApi.getInstitutionV2(partyId).then((institutionResource) => + institutionResource ? institutionResource2Party(institutionResource) : null + ); + } return DashboardApi.getInstitution(partyId).then((institutionResource) => institutionResource ? institutionResource2Party(institutionResource) : null ); diff --git a/src/services/tokenExchangeService.ts b/src/services/tokenExchangeService.ts index d37fadf9..07756716 100644 --- a/src/services/tokenExchangeService.ts +++ b/src/services/tokenExchangeService.ts @@ -1,6 +1,7 @@ import { DashboardApi } from '../api/DashboardApiClient'; import { Party } from '../model/Party'; import { Product } from '../model/Product'; +import { ENV } from '../utils/env'; export const retrieveBackOfficeUrl = ( selectedParty?: Party, @@ -13,6 +14,9 @@ export const getBillingToken = (partyId: string, environment?: string): Promise< if (process.env.REACT_APP_API_MOCK_PARTIES === 'true') { return new Promise((resolve) => resolve('DUMMYTOKEN')); } else { + if (ENV.USER.ENABLE_USER_V2) { + return DashboardApi.getBillingTokenV2(partyId, environment); + } return DashboardApi.getBillingToken(partyId, environment); } }; diff --git a/src/utils/env.ts b/src/utils/env.ts index ae6f00d4..05ffb159 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -45,6 +45,10 @@ export const ENV = { DASHBOARD: env.get('REACT_APP_API_DASHBOARD_TIMEOUT_MS').required().asInt(), }, + USER: { + ENABLE_USER_V2: env.get('REACT_APP_ENABLE_USER_V2').required().asBool(), + }, + URL_INSTITUTION_LOGO: { PREFIX: env.get('REACT_APP_URL_INSTITUTION_LOGO_PREFIX').required().asString(), SUFFIX: env.get('REACT_APP_URL_INSTITUTION_LOGO_SUFFIX').required().asString(),