From ed7c7fbdbb3001bd6682c5c38b2e69d8a10d198f Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 21 Jan 2022 23:46:47 +0100 Subject: [PATCH] Stripped down response messages --- api.yaml | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/api.yaml b/api.yaml index cdde2ae..d2d80a1 100644 --- a/api.yaml +++ b/api.yaml @@ -172,16 +172,8 @@ paths: $ref: '#/components/schemas/ArticleSummary' 401: description: Not authorized - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' 409: description: A article with the same title already exists - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' /api/edit: post: @@ -203,16 +195,8 @@ paths: $ref: '#/components/schemas/ArticleSummary' 401: description: Not authorized - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' 409: description: A article with the same title already exists - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' /api/delete: post: @@ -234,10 +218,8 @@ paths: description: The article was deleted 401: description: Not authorized - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' + 404: + description: Article was not found /api/tag: post: @@ -262,11 +244,9 @@ paths: schema: $ref: '#/components/schemas/Tag' 401: - description: Not authorized - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' + description: Not authorized + 409: + description: A tag with the same name already exists components: schemas: