Added authors and tags endpoint

This commit is contained in:
2022-01-21 22:31:28 +01:00
parent 34a2c029b7
commit 0d117eedfb

View File

@@ -33,6 +33,56 @@ paths:
401: 401:
description: Login failed 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: /api/recent:
get: get:
summary: Get recent articles summary: Get recent articles