From: Chocobozzz Date: Wed, 24 Apr 2019 14:57:23 +0000 (+0200) Subject: Fix video channel API route param in doc X-Git-Tag: v1.3.0-rc.1~39 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9ce3d3027ed7253fbd4fe46787eda58c51549444;p=github%2FChocobozzz%2FPeerTube.git Fix video channel API route param in doc --- diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 484cfb31d..dcc6026e2 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -1276,13 +1276,13 @@ paths: $ref: '#/paths/~1users~1me/put/responses/204' requestBody: $ref: '#/components/requestBodies/VideoChannelInput' - '/video-channels/{id}': + '/video-channels/{channelHandle}': get: summary: Get a video channel by its id tags: - Video Channel parameters: - - $ref: '#/components/parameters/id3' + - $ref: '#/components/parameters/channelHandle' responses: '200': description: successful operation @@ -1297,7 +1297,7 @@ paths: tags: - Video Channel parameters: - - $ref: '#/components/parameters/id3' + - $ref: '#/components/parameters/channelHandle' responses: '204': $ref: '#/paths/~1users~1me/put/responses/204' @@ -1310,17 +1310,17 @@ paths: tags: - Video Channel parameters: - - $ref: '#/components/parameters/id3' + - $ref: '#/components/parameters/channelHandle' responses: '204': $ref: '#/paths/~1users~1me/put/responses/204' - '/video-channels/{id}/videos': + '/video-channels/{channelHandle}/videos': get: summary: Get videos of a video channel by its id tags: - Video Channel parameters: - - $ref: '#/components/parameters/id3' + - $ref: '#/components/parameters/channelHandle' responses: '200': description: successful operation @@ -1611,11 +1611,11 @@ components: description: The video id or uuid schema: type: string - id3: - name: id + channelHandle: + name: channelHandle in: path required: true - description: The video channel id or uuid + description: "The video channel handle (example: 'my_username@example.com' or 'my_username')" schema: type: string commentId: