mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
adding content module
This commit is contained in:
parent
eab6e54d79
commit
e1585536c7
84
api.oa3
84
api.oa3
@ -1262,16 +1262,16 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
# /content/bundles/view - g
|
# /content/articleBlocks/view - g
|
||||||
# /content/bundles/{bundleId} - g
|
# /content/articleBlocks/{articleBlockId} - g
|
||||||
# /content/bundles/{bundleId}/view - g
|
# /content/articleBlocks/{articleBlockId}/view - g
|
||||||
# /content/articles - a
|
# /content/articles - a
|
||||||
# /content/articles/{articleId} - g,d
|
# /content/articles/{articleId} - g,d
|
||||||
# /content/articles/{articleId}/subject - s
|
# /content/articles/{articleId}/subject - s
|
||||||
# /content/articles/{articleId}/shares/{shareId} - s,c
|
# /content/articles/{articleId}/shares/{shareId} - s,c
|
||||||
# /content/articles/{articleId}/labels/{labelId} - s,c
|
# /content/articles/{articleId}/labels/{labelId} - s,c
|
||||||
# /content/articles/{articleId}/rolls/view - g
|
# /content/articles/{articleId}/tagBlocks/view - g
|
||||||
# /content/articles/{articleId}/rolls/{rollId} -g
|
# /content/articles/{articleId}/tagBlocks/{tagBlockId} -g
|
||||||
# /content/articles/{articleId}/tags - a
|
# /content/articles/{articleId}/tags - a
|
||||||
# /content/articles/{articleId}/tags/{tagId} - g,d
|
# /content/articles/{articleId}/tags/{tagId} - g,d
|
||||||
# /content/articles/{articleId}/asset - a
|
# /content/articles/{articleId}/asset - a
|
||||||
@ -1279,6 +1279,8 @@ paths:
|
|||||||
# /content/labels - g,a
|
# /content/labels - g,a
|
||||||
# /content/labels/{labelId} - a,d
|
# /content/labels/{labelId} - a,d
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Content Module
|
## Content Module
|
||||||
## structure types: article, subject, label, tag, articleBlock, tagBlock
|
## structure types: article, subject, label, tag, articleBlock, tagBlock
|
||||||
# get article block view [ { articleBlockId, articleBlockRevision } ]
|
# get article block view [ { articleBlockId, articleBlockRevision } ]
|
||||||
@ -1287,10 +1289,13 @@ paths:
|
|||||||
# }, labelId[], shareId[], tagCount, tagModified, tagRevision
|
# }, labelId[], shareId[], tagCount, tagModified, tagRevision
|
||||||
# } ]
|
# } ]
|
||||||
# get article view (blockId, subjectFilter): [ { articleId, articleRevision } ]
|
# get article view (blockId, subjectFilter): [ { articleId, articleRevision } ]
|
||||||
# get article (articleId, tagFilter) : { articleId, articleRevision, set, ready, subject: {
|
# get article (articleId, tagFilter) : { articleId, articleRevision, confirmed, ready, subject: {
|
||||||
# subjectId, revision, type, data, created, modified
|
# subjectId, revision, type, data, created, modified
|
||||||
# }, labelId[], shareId[], tagCount, tagModified, targRevision
|
# }, labelId[], shareId[], tagCount, tagModified, targRevision
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# get tag view (articleId, filter): [ { tagId, revision } ]
|
# get tag view (articleId, filter): [ { tagId, revision } ]
|
||||||
# get tag block (articleId, filter): [ { tagId, revision, type, data, created, modified } ]
|
# get tag block (articleId, filter): [ { tagId, revision, type, data, created, modified } ]
|
||||||
# get tag (tagId): { tagId, revision, type, data, created, modified }
|
# get tag (tagId): { tagId, revision, type, data, created, modified }
|
||||||
@ -1309,6 +1314,73 @@ externalDocs:
|
|||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
|
||||||
|
Subject:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- subjectId
|
||||||
|
- revision
|
||||||
|
- type
|
||||||
|
- data
|
||||||
|
- created
|
||||||
|
- modified
|
||||||
|
properties:
|
||||||
|
subjectid:
|
||||||
|
type: string
|
||||||
|
revision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
data:
|
||||||
|
type: string
|
||||||
|
created:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Article:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- articleId
|
||||||
|
- revision
|
||||||
|
- status
|
||||||
|
- subject
|
||||||
|
- labels
|
||||||
|
- groups
|
||||||
|
- tagCount
|
||||||
|
- tagUpdated
|
||||||
|
- tagRevision
|
||||||
|
properties:
|
||||||
|
articleId:
|
||||||
|
type: string
|
||||||
|
revision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
enum: [ unconfirmed, confirmed, complete, error ]
|
||||||
|
subject:
|
||||||
|
$ref: '#/components/schemas/Subject'
|
||||||
|
labels:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
groups:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
tagCount:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
|
tagUpdated:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
|
tagRevision:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
|
||||||
|
|
||||||
Announce:
|
Announce:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
Loading…
Reference in New Issue
Block a user