Versions Compared
Version | Old Version 2 | New Version 3 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Introduction
This page lists some sample use cases working with metadata and the endpoints in the service that support them
Examples
As a subscriber, I would like to see series images, episode images, episode number, season number
Use case | Endpoint | Fields | Comments |
---|---|---|---|
I would like to see series images | /series/{series_id} | data.attributes.images | The properties of all the images associated with the series are available |
I would like to see episode images | /programs/{program_id} | (included episode).attributes.images | All episodes related to the program will be included following the JSON api specification. You'll need to loop through the `included` key until you match the episode (by checking the `type` and `id` fields) and then look in the `attributes.images` key |
I would like to see the episode number | /programs/{program_id} | (included episode).attributes.episode_number | |
I would like to see the season number | /seasons/{season_id} | attributes.title | We don't limit seasons to having an integer number but rather allow a string format title. For series that have seasons which are numbered then the title will just be the season number |
Extra notes
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "type": "Episode", "id": "63bbc7de-d394-4252-abf9-701f35310b1e", "attributes": { "episode_number": 2, "images": [ { "id": "63bbc7de-d394-4252-abf9-701f35310b1e", "image_type": "Thumbnail", "alternate_access_description": "Bruce Willis shooting a big gun at some bad guys, pew pew pew", "width_pixels": 320, "height_pixels": 200, "iso_639-2_lang": "fin", "url": "https://www.demo.com/assets/img/thumbnails/movies/diehard.png" } ], "relationships": { "program": { "data": { "id": "d0de0088-3141-439e-8455-839bdb8f6cec", "type": "Program" } } } } } |
As a subscriber, I would like to see related information
Use case | Endpoint | Fields | Comments |
---|---|---|---|
see related information of series | |||
Table of Contents |
---|