Removed tag endpoint
This commit is contained in:
39
api.yaml
39
api.yaml
@@ -175,9 +175,9 @@ paths:
|
||||
tags:
|
||||
type: array
|
||||
items:
|
||||
type: number
|
||||
description: A tag id
|
||||
description: Tags as id the article should have. If the tag does not exist, a new one is created automatically
|
||||
type: string
|
||||
description: A tag name
|
||||
description: Tags the article should have. If the tag does not exist, a new one is created automatically
|
||||
link:
|
||||
type: string
|
||||
description: The link name (last path of the url) which redirects to the article
|
||||
@@ -234,9 +234,9 @@ paths:
|
||||
tags:
|
||||
type: array
|
||||
items:
|
||||
type: number
|
||||
description: A tag id
|
||||
description: Tags as id the article should have. If the tag does not exist, a new one is created automatically
|
||||
type: string
|
||||
description: A tag name
|
||||
description: Tags the article should have. If the tag does not exist, a new one is created automatically
|
||||
nullable: true
|
||||
link:
|
||||
type: string
|
||||
@@ -390,33 +390,6 @@ paths:
|
||||
404:
|
||||
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:
|
||||
schemas:
|
||||
ApiError:
|
||||
|
||||
Reference in New Issue
Block a user