From ce3235975863ccff43e3fb29b3e536533fa8b649 Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 21 Jan 2022 20:19:54 +0100 Subject: [PATCH] Added content filed to upload --- api.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api.yaml b/api.yaml index 7e8faa2..b349043 100644 --- a/api.yaml +++ b/api.yaml @@ -27,6 +27,7 @@ paths: type: array items: $ref: '#/components/schemas/ArticleSummary' + /api/search: get: summary: Search all articles @@ -63,6 +64,7 @@ paths: type: array items: $ref: '#/components/schemas/ArticleSummary' + /api/upload: post: summary: "Uploads a new article" @@ -88,6 +90,9 @@ paths: description: Tags the article should have. If the tag does not exist, a new one is created automatically items: $ref: '#/components/schemas/Tag' + content: + type: string + description: The article itself, formatted as markdown security: - cookie: [] @@ -107,7 +112,6 @@ paths: schema: $ref: '#/components/schemas/ApiError' - components: schemas: ApiError: