Removed tag endpoint

This commit is contained in:
2022-01-24 10:46:01 +01:00
parent 661f903fb5
commit bfabac80ca

View File

@@ -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
@@ -389,33 +389,6 @@ paths:
description: Not authorized
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: