From 0d117eedfb07130d409f3f5c8261e28215d19d9b Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 21 Jan 2022 22:31:28 +0100 Subject: [PATCH] Added authors and tags endpoint --- api.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/api.yaml b/api.yaml index ba8c9f1..beb6ba7 100644 --- a/api.yaml +++ b/api.yaml @@ -33,6 +33,56 @@ paths: 401: description: Login failed + /api/authors: + get: + summary: Get authors + parameters: + - in: query + name: name + schema: + type: string + description: Name (or a part of it) to filter tags after it + - in: query + name: limit + schema: + type: integer + description: Limit of recent authors to return + responses: + 200: + description: All found authors + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Author' + description: Array of all found authors + + /api/tags: + get: + summary: Get tags + parameters: + - in: query + name: name + schema: + type: string + description: Name (or a part of it) to filter tags after it + - in: query + name: limit + schema: + type: integer + description: Limit of recent tags to return + responses: + 200: + description: All found tags + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Tag' + description: Array of all found tags + /api/recent: get: summary: Get recent articles