mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
completed first pass of content module
This commit is contained in:
parent
dcc736fed7
commit
c7071b19b6
709
api.oa3
709
api.oa3
@ -626,7 +626,6 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
|
|
||||||
/share/groups:
|
/share/groups:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -669,27 +668,6 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
|
|
||||||
/share/groups/{groupId}:
|
/share/groups/{groupId}:
|
||||||
delete:
|
|
||||||
tags:
|
|
||||||
- share
|
|
||||||
description: Get groups for sharing
|
|
||||||
operationId: remove-share-group
|
|
||||||
security:
|
|
||||||
- bearerAuth: []
|
|
||||||
parameters:
|
|
||||||
- name: groupId
|
|
||||||
in: path
|
|
||||||
description: specified group id
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: successful operation
|
|
||||||
'401':
|
|
||||||
description: invalid token
|
|
||||||
'500':
|
|
||||||
description: internal server error
|
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- share
|
- share
|
||||||
@ -716,6 +694,27 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- share
|
||||||
|
description: Get groups for sharing
|
||||||
|
operationId: remove-share-group
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: groupId
|
||||||
|
in: path
|
||||||
|
description: specified group id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
/index/contacts:
|
/index/contacts:
|
||||||
post:
|
post:
|
||||||
@ -1263,7 +1262,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/content/blocks/view:
|
/content/articleBlocks/view:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- content
|
- content
|
||||||
@ -1279,13 +1278,19 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/View'
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
revision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
'401':
|
'401':
|
||||||
description: invalid password
|
description: invalid password
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/content/blocks/{blockId}:
|
/content/articleBlocks/{blockId}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- content
|
- content
|
||||||
@ -1314,7 +1319,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/content/blocks/{blockId}/view:
|
/content/articleBlocks/{blockId}/view:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- content
|
- content
|
||||||
@ -1337,7 +1342,13 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/View'
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
revision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
'401':
|
'401':
|
||||||
description: invalid password
|
description: invalid password
|
||||||
'500':
|
'500':
|
||||||
@ -1354,15 +1365,22 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
description: entry created
|
description: entry created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
blockId:
|
||||||
|
type: string
|
||||||
|
blockRevision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
article:
|
||||||
|
$ref: '#/components/schemas/Article'
|
||||||
'401':
|
'401':
|
||||||
description: invalid token
|
description: invalid token
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/Article'
|
|
||||||
|
|
||||||
/content/articles/{articleId}:
|
/content/articles/{articleId}:
|
||||||
get:
|
get:
|
||||||
@ -1412,45 +1430,562 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
# /content/articles/{articleId}/subject - s
|
/content/articles/{articleId}/subject:
|
||||||
# /content/articles/{articleId}/shares/{shareId} - s,c
|
put:
|
||||||
# /content/articles/{articleId}/labels/{labelId} - s,c
|
tags:
|
||||||
# /content/articles/{articleId}/tagBlocks/view - g
|
- content
|
||||||
# /content/articles/{articleId}/tagBlocks/{tagBlockId} -g
|
description: Add an content article
|
||||||
# /content/articles/{articleId}/tags - a
|
operationId: update-content-article
|
||||||
# /content/articles/{articleId}/tags/{tagId} - g,d
|
security:
|
||||||
# /content/articles/{articleId}/asset - a
|
- bearerAuth: []
|
||||||
# /content/articles/{articleId}/confirmed - s,c
|
parameters:
|
||||||
# /content/labels - g,a
|
- name: articleId
|
||||||
# /content/labels/{labelId} - a,d
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: entry created
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- data
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
data:
|
||||||
|
type: string
|
||||||
|
|
||||||
|
/content/articles/{articleId}/groups/{groupId}:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: set sharing group for article
|
||||||
|
operationId: set-article-group
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: groupId
|
||||||
|
in: path
|
||||||
|
description: specified share group id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: entry set
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: clear sharing group for article
|
||||||
|
operationId: clear-article-group
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: groupId
|
||||||
|
in: path
|
||||||
|
description: specified share id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: entry removed
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/content/articles/{articleId}/labels/{labelId}:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: set orginizational label for article
|
||||||
|
operationId: set-article-label
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: labelId
|
||||||
|
in: path
|
||||||
|
description: specified label id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: entry set
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: clear orginizationl label for article
|
||||||
|
operationId: clear-article-label
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: labelId
|
||||||
|
in: path
|
||||||
|
description: specified label id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: entry cleared
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
## Content Module
|
/content/articles/{articleId}/tagBlocks/{blockId}/view:
|
||||||
## structure types: article, subject, label, tag, articleBlock, tagBlock
|
get:
|
||||||
# get article block view [ { articleBlockId, articleBlockRevision } ]
|
tags:
|
||||||
# get article block (blockId, subjectFilter, tagFilter): [ { articleId, articleRevision, set, ready, subject: {
|
- content
|
||||||
# subjectId, revision, type, data, created, modified
|
description: Get view tag blocks in article
|
||||||
# }, labelId[], shareId[], tagCount, tagModified, tagRevision
|
operationId: get-tag-view
|
||||||
# } ]
|
security:
|
||||||
# get article view (blockId, subjectFilter): [ { articleId, articleRevision } ]
|
- bearerAuth: []
|
||||||
# get article (articleId, tagFilter) : { articleId, articleRevision, confirmed, ready, subject: {
|
parameters:
|
||||||
# subjectId, revision, type, data, created, modified
|
- name: articleId
|
||||||
# }, labelId[], shareId[], tagCount, tagModified, targRevision
|
in: path
|
||||||
# }
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: blockId
|
||||||
|
in: path
|
||||||
|
description: specified block id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
revision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
'401':
|
||||||
|
description: invalid password
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/content/articles/{articleId}/tagBlocks/{blockId}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Get tags from specified block
|
||||||
|
operationId: get-tag-block
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: blockId
|
||||||
|
in: path
|
||||||
|
description: specified block id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
revision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
'401':
|
||||||
|
description: invalid password
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/content/articles/{articleId}/tags:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Add an content article
|
||||||
|
operationId: add-article-tag
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: entry created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
blockId:
|
||||||
|
type: string
|
||||||
|
blockRevision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
tag:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/content/articles/{articleId}/tags/{tagId}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Add an content article
|
||||||
|
operationId: get-article-tag
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: tagId
|
||||||
|
in: path
|
||||||
|
description: specified tag id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: entry created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'404':
|
||||||
|
description: tag not found
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Add an content article
|
||||||
|
operationId: remove-article-tag
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: tagId
|
||||||
|
in: path
|
||||||
|
description: specified tag id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: entry removed
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'404':
|
||||||
|
description: tag not found
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/content/articles/{articleId}/assets:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Get assets attached to article
|
||||||
|
operationId: get-article-assets
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: entry created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Asset'
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Add an content article
|
||||||
|
operationId: add-article-asset
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: transforms
|
||||||
|
in: query
|
||||||
|
description: transforms to apply
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: entry created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Asset'
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
fileName:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
|
||||||
|
/content/articles/{articleId}/assets/{assetId}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Get asset attached to article
|
||||||
|
operationId: get-article-asset
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: assetId
|
||||||
|
in: path
|
||||||
|
description: specified asset id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: article attachment
|
||||||
|
content:
|
||||||
|
application/octet-stream: #asset specific
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'404':
|
||||||
|
description: asset not found
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/content/articles/{articleId}/confirmed:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: set confirmed state of article
|
||||||
|
operationId: set-article-confirmed
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: articleId
|
||||||
|
in: path
|
||||||
|
description: specified article id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: entry set
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'404':
|
||||||
|
description: article not found
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
/content/labels:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Get labels for organization
|
||||||
|
operationId: get-content-labels
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Label'
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- share
|
||||||
|
description: Add a label for organization
|
||||||
|
operationId: add-content-label
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: entry created
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
|
||||||
|
/content/labels/{labelId}:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Update label for organization
|
||||||
|
operationId: update-content-label
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: labelId
|
||||||
|
in: path
|
||||||
|
description: specified group id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Remove organizational label
|
||||||
|
operationId: remove-content-label
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
parameters:
|
||||||
|
- name: labelId
|
||||||
|
in: path
|
||||||
|
description: specified label id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
'401':
|
||||||
|
description: invalid token
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
# get tag view (articleId, filter): [ { tagId, revision } ]
|
|
||||||
# get tag block (articleId, filter): [ { tagId, revision, type, data, created, modified } ]
|
|
||||||
# get tag (tagId): { tagId, revision, type, data, created, modified }
|
|
||||||
# get labels (filter): [ { labelId, revision, type, data, created, modified } ]
|
|
||||||
# get subject asset
|
|
||||||
# add subject
|
|
||||||
# add subject asset
|
|
||||||
# update subject data
|
|
||||||
# set/clear ready
|
|
||||||
# set/clear share
|
|
||||||
|
|
||||||
externalDocs:
|
externalDocs:
|
||||||
description: Find out more about Swagger
|
description: Find out more about Swagger
|
||||||
@ -1467,19 +2002,7 @@ components:
|
|||||||
appToken:
|
appToken:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
View:
|
Subject:
|
||||||
type: object
|
|
||||||
required:
|
|
||||||
- id
|
|
||||||
- revision
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
revision:
|
|
||||||
type: integer
|
|
||||||
format: int64
|
|
||||||
|
|
||||||
Post:
|
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- postId
|
- postId
|
||||||
@ -1491,8 +2014,6 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
postId:
|
postId:
|
||||||
type: string
|
type: string
|
||||||
guid: # if null account owner is point owner
|
|
||||||
type: string
|
|
||||||
revision:
|
revision:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
@ -1504,6 +2025,30 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
|
||||||
|
Asset:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- assetId
|
||||||
|
properties:
|
||||||
|
assetId:
|
||||||
|
type: string
|
||||||
|
transform:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
enum: [ pending, processing, ready, error ]
|
||||||
|
|
||||||
|
Tag:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- guid
|
||||||
|
- subject
|
||||||
|
properties:
|
||||||
|
guid:
|
||||||
|
type: string
|
||||||
|
subject:
|
||||||
|
$ref: '#/components/schemas/Subject'
|
||||||
|
|
||||||
Article:
|
Article:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
@ -1519,8 +2064,6 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
subjectId:
|
subjectId:
|
||||||
type: string
|
type: string
|
||||||
guid:
|
|
||||||
type: string
|
|
||||||
revision:
|
revision:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
@ -1528,7 +2071,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
enum: [ unconfirmed, confirmed, complete, error ]
|
enum: [ unconfirmed, confirmed, complete, error ]
|
||||||
subject:
|
subject:
|
||||||
$ref: '#/components/schemas/Post'
|
$ref: '#/components/schemas/Subject'
|
||||||
labels:
|
labels:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
Loading…
Reference in New Issue
Block a user