From 0dabe488071a120f6d6c0a178f31cd1527227e50 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Thu, 7 Nov 2024 14:16:25 +0100 Subject: [PATCH] OVPAY-1180 - Added role and user to crud apis. --- src/openapi/util/util-crud.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/openapi/util/util-crud.yaml b/src/openapi/util/util-crud.yaml index bb881b2..ddf015c 100644 --- a/src/openapi/util/util-crud.yaml +++ b/src/openapi/util/util-crud.yaml @@ -86,6 +86,20 @@ paths: example: 65ad5520-4e62-41b7-89dd-a01be6cb78bf required: false description: Pointer to executor of this action (e.g. the batch job). + - in: query + name: role + schema: + type: string + example: customer + required: false + description: Role of the user or process that initiated the action. + - in: query + name: user + schema: + type: string + example: 1255ab39-2f10-409a-bf61-38c07e1b8a9e + required: false + description: User that initiated the action. In case of a customer this is the customer id. - in: query name: resourceName schema: @@ -123,6 +137,8 @@ paths: "created": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000", "correlationId": "fb4443c6-5a6a-47a3-adf0-db3dfc183399", + "role": "customer", + "user": "1255ab39-2f10-409a-bf61-38c07e1b8a9e", "scheduledActionResources": [ { @@ -157,6 +173,8 @@ paths: "created": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000", "correlationId": "fb4443c6-5a6a-47a3-adf0-db3dfc183399", + "role": "customer", + "user": "1255ab39-2f10-409a-bf61-38c07e1b8a9e", "scheduledActionResources": [ { @@ -217,6 +235,8 @@ paths: "created": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000", "correlationId": "fb4443c6-5a6a-47a3-adf0-db3dfc183399", + "role": "customer", + "user": "1255ab39-2f10-409a-bf61-38c07e1b8a9e", "scheduledActionResources": [ { @@ -390,6 +410,12 @@ components: type: string format: uuid example: 8699d72a-cf4d-4e6b-9e9c-549d837ca51f + role: + type: string + example: customer + user: + type: string + example: 1255ab39-2f10-409a-bf61-38c07e1b8a9e ScheduledActionType: type: object properties: