Skip to content

Commit

Permalink
Add /query/contents/privileged endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bvsharp committed Oct 31, 2024
1 parent 28524c2 commit ec54df7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/resources/swagger.api/queryTool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/swagger.api/schemas/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"description": "Whether to localize dates in content response",
"type": "boolean",
"default": false
},
"userId": {
"$ref": "common.json#/UUID"
}
},
"required": [
Expand Down

0 comments on commit ec54df7

Please sign in to comment.