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