... | @@ -2,10 +2,11 @@ |
... | @@ -2,10 +2,11 @@ |
|
|
|
|
|
| Purpose | Endpoint | Variables | Return value | GET | PUT | POST |
|
|
| Purpose | Endpoint | Variables | Return value | GET | PUT | POST |
|
|
| ------- | -------- | --------- | ------------ | :------: | :------: | :-------: |
|
|
| ------- | -------- | --------- | ------------ | :------: | :------: | :-------: |
|
|
| Get all shows of a user | /api/v1/shows/ | | Array of show objects | X | |
|
|
| Get all shows of a user | /api/v1/shows/ | active (bool) | Array of show objects. If active is true, only currently running shows will be returned. | X | |
|
|
| Get show by ID | /api/v1/shows/1 | | Show object | X | |
|
|
| Get show by ID | /api/v1/shows/1 | | Show object | X | |
|
|
| Add show | /api/v1/shows/ | name, slug, image, logo, short_description, description, email, website, cba_series_id, fallback_id, type_id (int), rtrcategory_id (int), predecessor_id (int), cba_series_id (int), category (array), hosts (array), language (array), topic (array), musicfocus (array), owners (array) | | | | X |
|
|
| Add show | /api/v1/shows/ | name, slug, image, logo, short_description, description, email, website, cba_series_id, fallback_id, type_id (int), rtrcategory_id (int), predecessor_id (int), cba_series_id (int), category (array), hosts (array), language (array), topic (array), musicfocus (array), owners (array) | | | | X |
|
|
| Update show | /api/v1/shows/1 | name, slug, image, logo, short_description, description, email, website, cba_series_id, fallback_id, type_id (int), rtrcategory_id (int), predecessor_id (int), cba_series_id (int), category (array), hosts (array), language (array), topic (array), musicfocus (array), owners (array) | | | X |
|
|
| Update show | /api/v1/shows/1 | name, slug, image, logo, short_description, description, email, website, cba_series_id, fallback_id, type_id (int), rtrcategory_id (int), predecessor_id (int), cba_series_id (int), category (array), hosts (array), language (array), topic (array), musicfocus (array), owners (array) | | | X |
|
|
|
|
| Get timeslots of a show | /api/v1/shows/1/timeslots | start (date), end (date) | Array of timeslots objects. If start and end not given, a default timerange will be returned. | X | |
|
|
| Get timeslots of a show | /api/v1/timeslots | show_id (int), start (date), end (date) | Array of timeslots objects. If start and end not given, a default timerange will be returned. | X | |
|
|
| Get timeslots of a show | /api/v1/timeslots | show_id (int), start (date), end (date) | Array of timeslots objects. If start and end not given, a default timerange will be returned. | X | |
|
|
| Get timeslots by ID | /api/v1/timeslots/1 | | Timeslot object | X | |
|
|
| Get timeslots by ID | /api/v1/timeslots/1 | | Timeslot object | X | |
|
|
| Update timeslot | /api/v1/timeslots/1 | id (int), memo (string), playlist_id (int), is_repetition (boolean) | Timeslot object | | X |
|
|
| Update timeslot | /api/v1/timeslots/1 | id (int), memo (string), playlist_id (int), is_repetition (boolean) | Timeslot object | | X |
|
... | | ... | |