From bfabac80ca9b12bea4d27edeb08aecb4a51869d1 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 24 Jan 2022 10:46:01 +0100 Subject: [PATCH] Removed tag endpoint --- api.yaml | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/api.yaml b/api.yaml index 7b53be3..c78c76f 100644 --- a/api.yaml +++ b/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 @@ -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: