From: Chocobozzz Date: Tue, 21 Apr 2020 13:28:17 +0000 (+0200) Subject: Fix comment body api doc X-Git-Tag: v2.2.0-rc.1~163 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98639806c0bf15dd97e1a683686cc3789faa33d8;p=oweals%2Fpeertube.git Fix comment body api doc --- diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 6197a431f..9fe98b8df 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -1808,6 +1808,18 @@ paths: application/json: schema: $ref: '#/components/schemas/CommentThreadPostResponse' + requestBody: + content: + application/json: + schema: + type: object + properties: + text: + type: string + description: 'Text comment' + required: + - text + '/videos/{id}/comment-threads/{threadId}': get: summary: Get a thread @@ -1840,6 +1852,18 @@ paths: application/json: schema: $ref: '#/components/schemas/CommentThreadPostResponse' + requestBody: + content: + application/json: + schema: + type: object + properties: + text: + type: string + description: 'Text comment' + required: + - text + delete: summary: Delete a comment or a reply security: