Added id to article edit payload and 404 response

This commit is contained in:
2022-01-21 23:56:03 +01:00
parent ed7c7fbdbb
commit ecd47f58fa

View File

@@ -183,6 +183,11 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object
properties:
id:
type: number
description: Id of the article to edit
$ref: '#/components/schemas/Article' $ref: '#/components/schemas/Article'
security: security:
- cookie: [] - cookie: []
@@ -195,6 +200,8 @@ paths:
$ref: '#/components/schemas/ArticleSummary' $ref: '#/components/schemas/ArticleSummary'
401: 401:
description: Not authorized description: Not authorized
404:
description: Article was not found
409: 409:
description: A article with the same title already exists description: A article with the same title already exists