diff --git a/api.yaml b/api.yaml index 77ecb20..fb3a844 100644 --- a/api.yaml +++ b/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