Wrapped articles into an array

This commit is contained in:
2021-12-12 13:39:11 +01:00
parent 14946eb0ef
commit 8f4b52f626

View File

@@ -21,6 +21,11 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object
properties:
articles:
type: array
items:
$ref: '#/components/schemas/ArticleSummary' $ref: '#/components/schemas/ArticleSummary'
/api/search: /api/search:
@@ -48,6 +53,11 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object
properties:
articles:
type: array
items:
$ref: '#/components/schemas/ArticleSummary' $ref: '#/components/schemas/ArticleSummary'
components: components:
schemas: schemas:
@@ -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