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