Added id to article edit payload and 404 response
This commit is contained in:
7
api.yaml
7
api.yaml
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user