From ecd47f58fa59731e950861f9db072d4ef5bf762b Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 21 Jan 2022 23:56:03 +0100 Subject: [PATCH] Added id to article edit payload and 404 response --- api.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api.yaml b/api.yaml index d2d80a1..e4631b1 100644 --- a/api.yaml +++ b/api.yaml @@ -183,6 +183,11 @@ paths: content: application/json: schema: + type: object + properties: + id: + type: number + description: Id of the article to edit $ref: '#/components/schemas/Article' security: - cookie: [] @@ -195,6 +200,8 @@ paths: $ref: '#/components/schemas/ArticleSummary' 401: description: Not authorized + 404: + description: Article was not found 409: description: A article with the same title already exists