United upload, edit and delete endpoint
This commit is contained in:
12
api.yaml
12
api.yaml
@@ -146,7 +146,7 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleSummary'
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
|
|
||||||
/api/upload:
|
/api/article:
|
||||||
post:
|
post:
|
||||||
summary: Uploads a new article
|
summary: Uploads a new article
|
||||||
requestBody:
|
requestBody:
|
||||||
@@ -198,10 +198,8 @@ paths:
|
|||||||
description: Not authorized
|
description: Not authorized
|
||||||
409:
|
409:
|
||||||
description: A article with the same title already exists
|
description: A article with the same title already exists
|
||||||
|
patch:
|
||||||
/api/edit:
|
summary: Edits an already existing article
|
||||||
post:
|
|
||||||
summary: Edit an already existing article
|
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
@@ -262,9 +260,7 @@ paths:
|
|||||||
description: Article was not found
|
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
|
||||||
|
delete:
|
||||||
/api/delete:
|
|
||||||
post:
|
|
||||||
summary: Deletes an article
|
summary: Deletes an article
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
Reference in New Issue
Block a user