mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
using query param for access token in attribute module
This commit is contained in:
parent
1c3f06cd5a
commit
f5e0ef29f8
67
doc/api.oa3
67
doc/api.oa3
@ -1654,6 +1654,18 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
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:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: successful operation
|
description: successful operation
|
||||||
@ -1685,8 +1697,13 @@ paths:
|
|||||||
- attribute
|
- attribute
|
||||||
description: Add a content article. Access granted to app token of the account holder.
|
description: Add a content article. Access granted to app token of the account holder.
|
||||||
operationId: add-article
|
operationId: add-article
|
||||||
security:
|
parameters:
|
||||||
- bearerAuth: []
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: agent token
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
description: entry created
|
description: entry created
|
||||||
@ -1712,8 +1729,6 @@ paths:
|
|||||||
- attribute
|
- attribute
|
||||||
description: Remove specified article. Access granted to app token of account holder.
|
description: Remove specified article. Access granted to app token of account holder.
|
||||||
operationId: remove-article
|
operationId: remove-article
|
||||||
security:
|
|
||||||
- bearerAuth: []
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: articleId
|
- name: articleId
|
||||||
in: path
|
in: path
|
||||||
@ -1721,6 +1736,12 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: agent token
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: success
|
description: success
|
||||||
@ -1739,8 +1760,6 @@ paths:
|
|||||||
- attribute
|
- 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.
|
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
|
operationId: get-article-subject-field
|
||||||
security:
|
|
||||||
- bearerAuth: []
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: articleId
|
- name: articleId
|
||||||
in: path
|
in: path
|
||||||
@ -1754,6 +1773,18 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
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:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: success
|
description: success
|
||||||
@ -1779,8 +1810,6 @@ paths:
|
|||||||
- attribute
|
- attribute
|
||||||
description: Set subject for article. Access granted to app token of account holder.
|
description: Set subject for article. Access granted to app token of account holder.
|
||||||
operationId: set-article-subject
|
operationId: set-article-subject
|
||||||
security:
|
|
||||||
- bearerAuth: []
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: articleId
|
- name: articleId
|
||||||
in: path
|
in: path
|
||||||
@ -1788,6 +1817,12 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: agent token
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: success
|
description: success
|
||||||
@ -1811,8 +1846,6 @@ paths:
|
|||||||
- attribute
|
- attribute
|
||||||
description: Set group for articles. Access granted to app tokens for account holder.
|
description: Set group for articles. Access granted to app tokens for account holder.
|
||||||
operationId: set-article-group
|
operationId: set-article-group
|
||||||
security:
|
|
||||||
- bearerAuth: []
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: articleId
|
- name: articleId
|
||||||
in: path
|
in: path
|
||||||
@ -1826,6 +1859,12 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: agent token
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: success
|
description: success
|
||||||
@ -1846,8 +1885,6 @@ paths:
|
|||||||
- attribute
|
- attribute
|
||||||
description: Clear sharing group for article. Access granted to app tokens for account holder.
|
description: Clear sharing group for article. Access granted to app tokens for account holder.
|
||||||
operationId: clear-article-group
|
operationId: clear-article-group
|
||||||
security:
|
|
||||||
- bearerAuth: []
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: articleId
|
- name: articleId
|
||||||
in: path
|
in: path
|
||||||
@ -1861,6 +1898,12 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: agent token
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: success
|
description: success
|
||||||
|
Loading…
Reference in New Issue
Block a user