Added authors and tags endpoint
This commit is contained in:
50
api.yaml
50
api.yaml
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user