|
| 1 | +# Group Translation Channels |
| 2 | +Data related to translation channel table |
| 3 | + |
| 4 | +| Parameter | Description | Type | Required | Public | |
| 5 | +|:----------|-------------|------|----------|--------| |
| 6 | +| `name` | Name of Translation channel | string | **yes** | **yes** | |
| 7 | +| `url` | URL of Translation channel | Url | **yes** | **yes** | |
| 8 | + |
| 9 | +## Translation Channels [/v1/translation_channels{?page%5bsize%5d,page%5bnumber%5d,sort,filter}] |
| 10 | ++ Parameters |
| 11 | + + page%5bsize%5d (optional, integer, `10`) - Maximum number of resources in a single paginated response. |
| 12 | + + page%5bnumber%5d (optional, integer, `2`) - Page number to fetched for the paginated response. |
| 13 | + + sort (optional, string, `url`) - Sort the resources according to the given attribute in ascending order. Append '-' to sort in descending order. |
| 14 | + + filter (optional, string, `[]`) - Filter according to the flask-rest-jsonapi filtering system. Please refer: http://flask-rest-jsonapi.readthedocs.io/en/latest/filtering.html for more. |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +### List all Translation Channels [GET] |
| 19 | +Get a list of all Translation Channels |
| 20 | + |
| 21 | ++ Request |
| 22 | + |
| 23 | + + Headers |
| 24 | + |
| 25 | + Accept: application/vnd.api+json |
| 26 | + |
| 27 | + Authorization: JWT <Auth Key> |
| 28 | + |
| 29 | + |
| 30 | ++ Response 200 (application/vnd.api+json) |
| 31 | + |
| 32 | + { |
| 33 | + "data": [ |
| 34 | + { |
| 35 | + "relationships": { |
| 36 | + "channel": { |
| 37 | + "links": { |
| 38 | + "self": "/v1/translation_channel/1/relationships/channels", |
| 39 | + "related": "/v1/video-channels/1" |
| 40 | + } |
| 41 | + }, |
| 42 | + "video-stream": { |
| 43 | + "links": { |
| 44 | + "self": "/v1/translation_channel/1/relationships/video-stream", |
| 45 | + "related": "/v1/video-streams/1" |
| 46 | + } |
| 47 | + } |
| 48 | + }, |
| 49 | + "attributes": { |
| 50 | + "name": "example-channel", |
| 51 | + "url": "http://example-channel.com" |
| 52 | + }, |
| 53 | + "type": "translation_channel", |
| 54 | + "id": 1, |
| 55 | + "links": { |
| 56 | + "self": "/v1/translation_channels/1" |
| 57 | + } |
| 58 | + } |
| 59 | + ], |
| 60 | + "links": { |
| 61 | + "self": "/v1/translation_channels?page%5Bsize%5D=10&page%5Bnumber%5D=2&sort=url&filter=%5B%5D" |
| 62 | + }, |
| 63 | + "meta": { |
| 64 | + "count": 1 |
| 65 | + }, |
| 66 | + "jsonapi": { |
| 67 | + "version": "1.0" |
| 68 | + } |
| 69 | + } |
| 70 | + |
| 71 | +## Translation Channels [/v1/video-streams/{video_stream_id}/translation_channels] |
| 72 | ++ Parameters |
| 73 | + + video_stream_id: 1 (string) - identifier or stream id. |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | +### List all Translation Channels Of Video Stream [GET] |
| 78 | +Get a list of all Video Streams |
| 79 | + |
| 80 | ++ Request |
| 81 | + |
| 82 | + + Headers |
| 83 | + |
| 84 | + Accept: application/vnd.api+json |
| 85 | + |
| 86 | + Authorization: JWT <Auth Key> |
| 87 | + |
| 88 | + |
| 89 | ++ Response 200 (application/vnd.api+json) |
| 90 | + |
| 91 | + { |
| 92 | + "data": [ |
| 93 | + { |
| 94 | + "relationships": { |
| 95 | + "channel": { |
| 96 | + "links": { |
| 97 | + "self": "/v1/translation_channel/1/relationships/channels", |
| 98 | + "related": "/v1/video-channels/1" |
| 99 | + } |
| 100 | + }, |
| 101 | + "video-stream": { |
| 102 | + "links": { |
| 103 | + "self": "/v1/translation_channel/1/relationships/video-stream", |
| 104 | + "related": "/v1/video-streams/1" |
| 105 | + } |
| 106 | + } |
| 107 | + }, |
| 108 | + "attributes": { |
| 109 | + "name": "example-channel", |
| 110 | + "url": "http://example-channel.com" |
| 111 | + }, |
| 112 | + "type": "translation_channel", |
| 113 | + "id": 1, |
| 114 | + "links": { |
| 115 | + "self": "/v1/translation_channels/1" |
| 116 | + } |
| 117 | + } |
| 118 | + ], |
| 119 | + "links": { |
| 120 | + "self": "/v1/translation_channels?page%5Bsize%5D=10&page%5Bnumber%5D=2&sort=url&filter=%5B%5D" |
| 121 | + }, |
| 122 | + "meta": { |
| 123 | + "count": 1 |
| 124 | + }, |
| 125 | + "jsonapi": { |
| 126 | + "version": "1.0" |
| 127 | + } |
| 128 | + } |
0 commit comments