Skip to content

Commit 0d6b9b3

Browse files
Merge pull request #89 from apivideo/bugfix/update-list-all-video-objects-descriptions
Update parameter descriptions and add enums
2 parents a505f55 + f77940d commit 0d6b9b3

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

api/openapi.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ paths:
210210
type: object
211211
style: deepObject
212212
x-is-deep-object: true
213-
- description: If you described a video with a term or sentence, you can add
214-
it here to return videos containing this string.
213+
- description: Retrieve video objects by `description`.
215214
example: New Zealand
216215
explode: true
217216
in: query
@@ -220,8 +219,8 @@ paths:
220219
schema:
221220
type: string
222221
style: form
223-
- description: If you know the ID for a live stream, you can retrieve the stream
224-
by adding the ID for it here.
222+
- description: Retrieve video objects that were recorded from a live stream
223+
by `liveStreamId`.
225224
example: li400mYKSgQ6xs7taUeSaEKr
226225
explode: true
227226
in: query
@@ -230,24 +229,32 @@ paths:
230229
schema:
231230
type: string
232231
style: form
233-
- description: 'Allowed: publishedAt, title. You can search by the time videos
234-
were published at, or by title.'
232+
- description: Use this parameter to sort videos by the their created time,
233+
published time, updated time, or by title.
235234
example: publishedAt
236235
explode: true
237236
in: query
238237
name: sortBy
239238
required: false
240239
schema:
240+
enum:
241+
- title
242+
- createdAt
243+
- publishedAt
244+
- updatedAt
241245
type: string
242246
style: form
243-
- description: 'Allowed: asc, desc. asc is ascending and sorts from A to Z.
244-
desc is descending and sorts from Z to A.'
247+
- description: Use this parameter to sort results. `asc` is ascending and sorts
248+
from A to Z. `desc` is descending and sorts from Z to A.
245249
example: asc
246250
explode: true
247251
in: query
248252
name: sortOrder
249253
required: false
250254
schema:
255+
enum:
256+
- asc
257+
- desc
251258
type: string
252259
style: form
253260
- description: 'Choose the number of search results to return per page. Minimum

docs/VideosApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,10 @@ Name | Type | Description | Notes
557557
**title** | **String**| The title of a specific video you want to find. The search will match exactly to what term you provide and return any videos that contain the same term as part of their titles. | [optional]
558558
**tags** | [**List<String>**](String.md)| A tag is a category you create and apply to videos. You can search for videos with particular tags by listing one or more here. Only videos that have all the tags you list will be returned. | [optional]
559559
**metadata** | [**Map<String, String>**](String.md)| Videos can be tagged with metadata tags in key:value pairs. You can search for videos with specific key value pairs using this parameter. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. | [optional]
560-
**description** | **String**| If you described a video with a term or sentence, you can add it here to return videos containing this string. | [optional]
561-
**liveStreamId** | **String**| If you know the ID for a live stream, you can retrieve the stream by adding the ID for it here. | [optional]
562-
**sortBy** | **String**| Allowed: publishedAt, title. You can search by the time videos were published at, or by title. | [optional]
563-
**sortOrder** | **String**| Allowed: asc, desc. asc is ascending and sorts from A to Z. desc is descending and sorts from Z to A. | [optional]
560+
**description** | **String**| Retrieve video objects by `description`. | [optional]
561+
**liveStreamId** | **String**| Retrieve video objects that were recorded from a live stream by `liveStreamId`. | [optional]
562+
**sortBy** | **String**| Use this parameter to sort videos by the their created time, published time, updated time, or by title. | [optional] [enum: title, createdAt, publishedAt, updatedAt]
563+
**sortOrder** | **String**| Use this parameter to sort results. `asc` is ascending and sorts from A to Z. `desc` is descending and sorts from Z to A. | [optional] [enum: asc, desc]
564564
**currentPage** | **Integer**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
565565
**pageSize** | **Integer**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]
566566

src/main/java/video/api/client/api/clients/VideosApi.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,8 +2161,7 @@ public APIlistRequest metadata(Map<String, String> metadata) {
21612161
* Set description
21622162
*
21632163
* @param description
2164-
* If you described a video with a term or sentence, you can add it here to return videos containing
2165-
* this string. (optional)
2164+
* Retrieve video objects by &#x60;description&#x60;. (optional)
21662165
*
21672166
* @return APIlistRequest
21682167
*/
@@ -2175,7 +2174,7 @@ public APIlistRequest description(String description) {
21752174
* Set liveStreamId
21762175
*
21772176
* @param liveStreamId
2178-
* If you know the ID for a live stream, you can retrieve the stream by adding the ID for it here.
2177+
* Retrieve video objects that were recorded from a live stream by &#x60;liveStreamId&#x60;.
21792178
* (optional)
21802179
*
21812180
* @return APIlistRequest
@@ -2189,8 +2188,8 @@ public APIlistRequest liveStreamId(String liveStreamId) {
21892188
* Set sortBy
21902189
*
21912190
* @param sortBy
2192-
* Allowed: publishedAt, title. You can search by the time videos were published at, or by title.
2193-
* (optional)
2191+
* Use this parameter to sort videos by the their created time, published time, updated time, or by
2192+
* title. (optional)
21942193
*
21952194
* @return APIlistRequest
21962195
*/
@@ -2203,8 +2202,8 @@ public APIlistRequest sortBy(String sortBy) {
22032202
* Set sortOrder
22042203
*
22052204
* @param sortOrder
2206-
* Allowed: asc, desc. asc is ascending and sorts from A to Z. desc is descending and sorts from Z to
2207-
* A. (optional)
2205+
* Use this parameter to sort results. &#x60;asc&#x60; is ascending and sorts from A to Z.
2206+
* &#x60;desc&#x60; is descending and sorts from Z to A. (optional)
22082207
*
22092208
* @return APIlistRequest
22102209
*/

0 commit comments

Comments
 (0)