From 20e43ee345b384ccb7240c600560721dfa9e6694 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 22 Jan 2022 01:44:54 +0100 Subject: [PATCH] Changed authors and tags request field from author schema --- api.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api.yaml b/api.yaml index d74b075..8ae508e 100644 --- a/api.yaml +++ b/api.yaml @@ -269,17 +269,19 @@ components: authors: type: array items: - $ref: '#/components/schemas/Author' - description: List of additional author who contributed to the article. The author which sends this request is automatically added as (main) author + type: number + description: A author id + description: List of additional authors as id which contributed to the article. The author which sends this request is automatically added as (main) author image: type: string description: Link to a preview image nullable: true tags: type: array - description: Tags the article should have. If the tag does not exist, a new one is created automatically items: - $ref: '#/components/schemas/Tag' + 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 link: type: string description: The link name (last path of the url) which redirects to the article