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: