Wrapped articles into an array
This commit is contained in:
15
api.yaml
15
api.yaml
@@ -21,7 +21,12 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ArticleSummary'
|
type: object
|
||||||
|
properties:
|
||||||
|
articles:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
|
|
||||||
/api/search:
|
/api/search:
|
||||||
get:
|
get:
|
||||||
@@ -48,7 +53,12 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ArticleSummary'
|
type: object
|
||||||
|
properties:
|
||||||
|
articles:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
ArticleSummary:
|
ArticleSummary:
|
||||||
@@ -63,6 +73,7 @@ components:
|
|||||||
image:
|
image:
|
||||||
type: string
|
type: string
|
||||||
description: Link to a preview image
|
description: Link to a preview image
|
||||||
|
nullable: true
|
||||||
link:
|
link:
|
||||||
type: string
|
type: string
|
||||||
description: Link to the article itself
|
description: Link to the article itself
|
||||||
|
|||||||
Reference in New Issue
Block a user