From 5e1c08eb94746c44b8b14a12c0937aadb34feb57 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Jan 2018 11:54:32 +0100 Subject: Add api doc in html --- support/doc/api/openapi.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'support/doc/api/openapi.yaml') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index e6d2f51d8..8ba784d4b 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -1,7 +1,7 @@ swagger: '2.0' info: - title: peertube - version: 0.0.13-alpha + title: PeerTube + version: 0.0.15-alpha description: Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular. paths: '/accounts/{id}': @@ -731,6 +731,10 @@ paths: responses: '200': description: successful operation + schema: + items: + type: array + $ref: '#/definitions/VideoComment' post: tags: - VideoComment @@ -769,6 +773,8 @@ paths: responses: '200': description: successful operation + schema: + $ref: '#/definitions/VideoCommentThreadTree' "/video/{videoId}/comments/{commentId}": post: tags: @@ -963,6 +969,14 @@ definitions: type: number account: $ref: "#/definitions/Account" + VideoCommentThreadTree: + properties: + comment: + $ref: "#/definitions/VideoComment" + children: + type: array + items: + $ref: "#/definitions/VideoCommentThreadTree" Avatar: properties: path: -- cgit v1.2.3