From f5e0ef29f876049a1377ba4ee8060e24c1e9e747 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Sun, 20 Mar 2022 14:41:58 -0700 Subject: [PATCH] using query param for access token in attribute module --- doc/api.oa3 | 67 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 55 insertions(+), 12 deletions(-) diff --git a/doc/api.oa3 b/doc/api.oa3 index 2587754b..810f4916 100644 --- a/doc/api.oa3 +++ b/doc/api.oa3 @@ -1654,6 +1654,18 @@ paths: required: false schema: type: string + - name: agent + in: query + description: agent token + required: false + schema: + type: string + - name: contact + in: query + description: contact token + required: false + schema: + type: string responses: '200': description: successful operation @@ -1685,8 +1697,13 @@ paths: - attribute description: Add a content article. Access granted to app token of the account holder. operationId: add-article - security: - - bearerAuth: [] + parameters: + - name: agent + in: query + description: agent token + required: false + schema: + type: string responses: '201': description: entry created @@ -1712,8 +1729,6 @@ paths: - attribute description: Remove specified article. Access granted to app token of account holder. operationId: remove-article - security: - - bearerAuth: [] parameters: - name: articleId in: path @@ -1721,6 +1736,12 @@ paths: required: true schema: type: string + - name: agent + in: query + description: agent token + required: false + schema: + type: string responses: '200': description: success @@ -1739,8 +1760,6 @@ paths: - attribute description: Base64 decode and download specified field from the article's subject. Access granted to app token of account holder or contact token of account the article is shared with. operationId: get-article-subject-field - security: - - bearerAuth: [] parameters: - name: articleId in: path @@ -1754,6 +1773,18 @@ paths: required: true schema: type: string + - name: agent + in: query + description: agent token + required: false + schema: + type: string + - name: contact + in: query + description: contact token + required: false + schema: + type: string responses: '200': description: success @@ -1779,8 +1810,6 @@ paths: - attribute description: Set subject for article. Access granted to app token of account holder. operationId: set-article-subject - security: - - bearerAuth: [] parameters: - name: articleId in: path @@ -1788,6 +1817,12 @@ paths: required: true schema: type: string + - name: agent + in: query + description: agent token + required: false + schema: + type: string responses: '200': description: success @@ -1811,8 +1846,6 @@ paths: - attribute description: Set group for articles. Access granted to app tokens for account holder. operationId: set-article-group - security: - - bearerAuth: [] parameters: - name: articleId in: path @@ -1826,6 +1859,12 @@ paths: required: true schema: type: string + - name: agent + in: query + description: agent token + required: false + schema: + type: string responses: '200': description: success @@ -1846,8 +1885,6 @@ paths: - attribute description: Clear sharing group for article. Access granted to app tokens for account holder. operationId: clear-article-group - security: - - bearerAuth: [] parameters: - name: articleId in: path @@ -1861,6 +1898,12 @@ paths: required: true schema: type: string + - name: agent + in: query + description: agent token + required: false + schema: + type: string responses: '200': description: success