Stripped down response messages
This commit is contained in:
30
api.yaml
30
api.yaml
@@ -172,16 +172,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/ArticleSummary'
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
401:
|
401:
|
||||||
description: Not authorized
|
description: Not authorized
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ApiError'
|
|
||||||
409:
|
409:
|
||||||
description: A article with the same title already exists
|
description: A article with the same title already exists
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ApiError'
|
|
||||||
|
|
||||||
/api/edit:
|
/api/edit:
|
||||||
post:
|
post:
|
||||||
@@ -203,16 +195,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/ArticleSummary'
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
401:
|
401:
|
||||||
description: Not authorized
|
description: Not authorized
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ApiError'
|
|
||||||
409:
|
409:
|
||||||
description: A article with the same title already exists
|
description: A article with the same title already exists
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ApiError'
|
|
||||||
|
|
||||||
/api/delete:
|
/api/delete:
|
||||||
post:
|
post:
|
||||||
@@ -234,10 +218,8 @@ paths:
|
|||||||
description: The article was deleted
|
description: The article was deleted
|
||||||
401:
|
401:
|
||||||
description: Not authorized
|
description: Not authorized
|
||||||
content:
|
404:
|
||||||
application/json:
|
description: Article was not found
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ApiError'
|
|
||||||
|
|
||||||
/api/tag:
|
/api/tag:
|
||||||
post:
|
post:
|
||||||
@@ -262,11 +244,9 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Tag'
|
$ref: '#/components/schemas/Tag'
|
||||||
401:
|
401:
|
||||||
description: Not authorized
|
description: Not authorized
|
||||||
content:
|
409:
|
||||||
application/json:
|
description: A tag with the same name already exists
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ApiError'
|
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
|||||||
Reference in New Issue
Block a user