X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Fapi%2Fopenapi.yaml;h=186d7d37da81c382b83e7b6796f5b2c39352c101;hb=237e221292ec55762726dd47c4378d17635011ae;hp=3b06a25684b410776a483a8baebb1dbbb885da7a;hpb=2c318664305fd2723586ad939e64f958d9d447ff;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 3b06a2568..186d7d37d 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -1147,7 +1147,8 @@ paths: description: Whether or not we wait transcoding before publish the video type: string support: - description: Text describing how to support the video uploader + description: A text tell the audience how to support the video creator + example: Please support my work on ! <3 type: string nsfw: description: Whether or not this video contains sensitive content @@ -1305,7 +1306,8 @@ paths: description: Whether or not we wait transcoding before publish the video type: string support: - description: Text describing how to support the video uploader + description: A text tell the audience how to support the video creator + example: Please support my work on ! <3 type: string nsfw: description: Whether or not this video contains sensitive content @@ -1422,7 +1424,8 @@ paths: description: Whether or not we wait transcoding before publish the video type: string support: - description: Text describing how to support the video uploader + description: A text tell the audience how to support the video creator + example: Please support my work on ! <3 type: string nsfw: description: Whether or not this video contains sensitive content @@ -2723,7 +2726,7 @@ paths: - name: format in: path required: true - description: 'format expected (we focus on making `rss` the most featureful ; it serves Media RSS)' + description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))' schema: type: string enum: @@ -2739,6 +2742,26 @@ paths: description: 'limit listing to a specific video' schema: type: string + - name: accountId + in: query + description: 'limit listing to a specific account' + schema: + type: string + - name: accountName + in: query + description: 'limit listing to a specific account' + schema: + type: string + - name: videoChannelId + in: query + description: 'limit listing to a specific video channel' + schema: + type: string + - name: videoChannelName + in: query + description: 'limit listing to a specific video channel' + schema: + type: string responses: '204': description: successful operation @@ -2763,6 +2786,13 @@ paths: application/json: schema: type: object + '400': + x-summary: field inconsistencies + description: > + Arises when: + - videoId filter is mixed with a channel filter + '404': + description: video, video channel or account not found '406': description: accept header unsupported '/feeds/videos.{format}': @@ -2781,7 +2811,7 @@ paths: - name: format in: path required: true - description: 'format expected (we focus on making `rss` the most featureful ; it serves Media RSS)' + description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))' schema: type: string enum: @@ -2842,6 +2872,8 @@ paths: application/json: schema: type: object + '404': + description: video channel or account not found '406': description: accept header unsupported /plugins: @@ -3775,6 +3807,7 @@ components: type: string support: type: string + description: A text tell the audience how to support the video creator example: Please support my work on ! <3 channel: $ref: '#/components/schemas/VideoChannel' @@ -4806,6 +4839,7 @@ components: support: type: string description: 'A text shown by default on all videos of this channel, to tell the audience how to support it' + example: Please support my work on ! <3 required: - name - displayName @@ -4818,6 +4852,7 @@ components: support: type: string description: 'A text shown by default on all videos of this channel, to tell the audience how to support it' + example: Please support my work on ! <3 bulkVideosSupportUpdate: type: boolean description: 'Update the support field for all videos of this channel'