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