From ec54df79616235d70257ca8fd11d3ef32e620852 Mon Sep 17 00:00:00 2001 From: Bobby Sharp Date: Thu, 31 Oct 2024 11:17:21 -0400 Subject: [PATCH] Add /query/contents/privileged endpoint --- src/main/resources/swagger.api/queryTool.yaml | 24 +++++++++++++++++++ .../resources/swagger.api/schemas/query.json | 3 +++ 2 files changed, 27 insertions(+) diff --git a/src/main/resources/swagger.api/queryTool.yaml b/src/main/resources/swagger.api/queryTool.yaml index f1012a6..d54f703 100644 --- a/src/main/resources/swagger.api/queryTool.yaml +++ b/src/main/resources/swagger.api/queryTool.yaml @@ -201,6 +201,30 @@ paths: $ref: '#/components/responses/badRequestResponse' '500': $ref: '#/components/responses/internalServerErrorResponse' + /query/contents/privileged: + post: + tags: + - fqlQuery + operationId: getContentsPrivileged + description: get contents for list of ids using a specified user proxy + requestBody: + description: Contents request + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/contentsRequest' + responses: + '200': + description: A page of list contents + content: + application/json: + schema: + $ref: '#/components/schemas/contents' + '400': + $ref: '#/components/responses/badRequestResponse' + '500': + $ref: '#/components/responses/internalServerErrorResponse' components: parameters: entityTypeId: diff --git a/src/main/resources/swagger.api/schemas/query.json b/src/main/resources/swagger.api/schemas/query.json index 9dffc55..6936b06 100644 --- a/src/main/resources/swagger.api/schemas/query.json +++ b/src/main/resources/swagger.api/schemas/query.json @@ -149,6 +149,9 @@ "description": "Whether to localize dates in content response", "type": "boolean", "default": false + }, + "userId": { + "$ref": "common.json#/UUID" } }, "required": [