Removed tag endpoint
This commit is contained in:
39
api.yaml
39
api.yaml
@@ -175,9 +175,9 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
description: A tag id
|
description: A tag name
|
||||||
description: Tags as id the article should have. If the tag does not exist, a new one is created automatically
|
description: Tags the article should have. If the tag does not exist, a new one is created automatically
|
||||||
link:
|
link:
|
||||||
type: string
|
type: string
|
||||||
description: The link name (last path of the url) which redirects to the article
|
description: The link name (last path of the url) which redirects to the article
|
||||||
@@ -234,9 +234,9 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
description: A tag id
|
description: A tag name
|
||||||
description: Tags as id the article should have. If the tag does not exist, a new one is created automatically
|
description: Tags the article should have. If the tag does not exist, a new one is created automatically
|
||||||
nullable: true
|
nullable: true
|
||||||
link:
|
link:
|
||||||
type: string
|
type: string
|
||||||
@@ -389,33 +389,6 @@ paths:
|
|||||||
description: Not authorized
|
description: Not authorized
|
||||||
404:
|
404:
|
||||||
description: An asset with this id does not exist
|
description: An asset with this id does not exist
|
||||||
|
|
||||||
/api/tag:
|
|
||||||
post:
|
|
||||||
summary: Creates a new tag
|
|
||||||
requestBody:
|
|
||||||
required: true
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
description: Name of the new tag
|
|
||||||
security:
|
|
||||||
- cookie: []
|
|
||||||
responses:
|
|
||||||
201:
|
|
||||||
description: The tag was created
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/Tag'
|
|
||||||
401:
|
|
||||||
description: Not authorized
|
|
||||||
409:
|
|
||||||
description: A tag with the same name already exists
|
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
|||||||
Reference in New Issue
Block a user