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