United upload, edit and delete endpoint

This commit is contained in:
2022-01-24 13:05:58 +01:00
parent 75b3f0c068
commit a3bd540bb0

View File

@@ -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