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