From 52746090405965e9e424aabe2ab2cdfd68c506e5 Mon Sep 17 00:00:00 2001 From: "antonio.torre" Date: Tue, 2 Jul 2024 15:28:41 +0200 Subject: [PATCH] P4ADEV-523 exposing operatorList API --- openapi/p4pa-auth.openapi.yaml | 104 +++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/openapi/p4pa-auth.openapi.yaml b/openapi/p4pa-auth.openapi.yaml index f454160b..302beaa9 100644 --- a/openapi/p4pa-auth.openapi.yaml +++ b/openapi/p4pa-auth.openapi.yaml @@ -126,6 +126,46 @@ paths: description: Invalid request '401': description: Invalid client_id + /am/operators/{organizationIpaCode}: + get: + tags: + - authz + operationId: getOrganizationOperators + parameters: + - name: organizationIpaCode + in: path + required: true + schema: + type: string + - name: page + in: query + description: "The number of the page" + schema: + type: integer + default: 0 + - name: size + in: query + description: "Number of items" + schema: + type: integer + default: 10 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/OperatorsPage' + '400': + description: Invalid request + '401': + description: Unauthorized + '403': + description: Forbidden + '412': + description: ToS acceptance missing + '429': + description: Too Many Requests security: - BearerAuth: [] components: @@ -192,6 +232,70 @@ components: type: array items: type: string + OperatorsPage: + type: object + required: + - content + - pageNo + - pageSize + - totalElements + - totalPages + properties: + content: + type: array + items: + $ref: '#/components/schemas/Operator' + description: "The list of organization operators" + pageNo: + type: integer + format: int32 + description: "Number of page" + pageSize: + type: integer + format: int32 + description: "Number of elements in the page" + totalElements: + type: integer + format: int32 + description: "Number of total elements" + totalPages: + type: integer + format: int32 + description: "Number of total pages" + Operator: + type: object + required: + - userId + - mappedExternalUserId + - userCode + - operatorId + - roles + - organizationIpaCode + properties: + userId: + type: integer + format: int32 + mappedExternalUserId: + type: string + userCode: + type: string + operatorId: + type: integer + format: int32 + roles: + type: array + items: + type: string + organizationIpaCode: + type: string + fiscalCode: + type: string + name: + type: string + familyName: + type: string + email: + type: string AuthErrorDTO: type: object required: