... | ... | @@ -5,22 +5,23 @@ |
|
|
| Get all shows of a user | /api/v1/shows/ | | Array of show objects | 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 |
|
|
|
| Update show | /api/v1/shows/1 | name, slug, image, logo, short_description, description, email, website, cba_series_id, fallback_id | | | 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/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 | |
|
|
|
| Update timeslot | /api/v1/timeslots/1 | id (int), memo (string), playlist_id (int), is_repetition (boolean) | Timeslot object | | X |
|
|
|
| Get notes by ID | /api/v1/notes/1 | ids (comma separated integer values) | Array of note objects | X | |
|
|
|
| Add note | /api/v1/notes | show (int), timeslot (int), title, slug, summary, content, image, status, cba_id | | | | X |
|
|
|
| Update note | /api/v1/notes/1 | note (int), show (int), timeslot (int), title, slug, summary, content, image, status (0 = cancellation, 1 = recommendation, 2 = repetition), cba_id (int) | Note object | | X |
|
|
|
| Get user profile | /api/v1/users/1 | | User object | X | |
|
|
|
| Update user profile | /api/v1/users/1 | id (int), first_name, last_name, email, cba_username, cba_user_token | User object | | X |
|
|
|
| Add note | /api/v1/notes | show (int), timeslot (int), title, slug, summary, content, image, status (0 = cancellation, 1 = recommendation, 2 = repetition), cba_id (int) | | | | X |
|
|
|
| Update note | /api/v1/notes/1 | show (int), timeslot (int), title, slug, summary, content, image, status (0 = cancellation, 1 = recommendation, 2 = repetition), cba_id (int) | Note object | | X |
|
|
|
| Get user | /api/v1/users/1 | | User object | X | |
|
|
|
| Add user | /api/v1/users/1 | | first_name (str), last_name (str), email (str), cba_username (str), cba_user_token (str), is_superuser (bool), is_staff (bool), is_active (bool), groups (array), user_permissions (array) | | | X |
|
|
|
| Update user | /api/v1/users/1 | first_name (str), last_name (str), email (str), cba_username (str), cba_user_token (str), is_superuser (bool), is_staff (bool), is_active (bool), groups (array), user_permissions (array) | User object | | X |
|
|
|
| Get categories | /api/v1/categories | | Array of category objects | X | | |
|
|
|
| Get category by ID | /api/v1/categories/1 | | Category object | X | | |
|
|
|
| Add category | /api/v1/categories | category (str), abbrev (str), slug (str), color (str, e.g. '#FFFFFF'), description (str) | | | | X
|
|
|
| Update category | /api/v1/categories/1 | category (str), abbrev (str), slug (str), color (str, e.g. '#FFFFFF'), description (str) | | | X | |
|
|
|
| Get types | /api/v1/types | | Array of type objects | X | | |
|
|
|
| Get type by ID | /api/v1/types/1 | | Type object | X | | |
|
|
|
| Add type | /api/v1/types | type (str), slug (str), color (str), text_color (str) | | | | X
|
|
|
| Add type | /api/v1/types | type (str), slug (str), color (str), text_color (str), enabled (int) | | | | X
|
|
|
| Update type | /api/v1/types/1 | type (str), slug (str), color (str, e.g. '#FFFFFF'), text_color (str, e.g. '#000000'), enabled (bool) | | | X | |
|
|
|
| Get topics | /api/v1/topics | | Array of topic objects | X | | |
|
|
|
| Get topic by ID | /api/v1/topics/1 | | Topic object | X | | |
|
... | ... | @@ -44,7 +45,7 @@ |
|
|
| Update host | /api/v1/hosts/1 | name (str), email (str), website (str), biography (str), googleplus_url (str), facebook_url (str), twitter_url (str), linkedin_url (str), youtube_url (str), dorftv_url (str), cba_url (str), image | | | X | |
|
|
|
| Get daily program | /api/v1/program/ | date (date) | If date is not given, today will be returned. Array of objects | X | |
|
|
|
| Playout API | /api/v1/playout | start (date), end (date) | If start and end not given, the next 24 hours will be returned. Array of objects. Fields: timeslot_id (int), timeslot_start (datetime), timeslot_end (datetime), show_id (string), show_name (string), show_hosts (string), rtrcategory (string), playlist_id (int), schedule_fallback_id (int), show_fallback_id (int), station_fallback_id (int), is_repetition (bool), memo (string), languages (string), type (string), category (string), topic (string), music_focus (string) | X | |
|
|
|
| FRAPP API | /frapp/ | date (date) | If date not given, today will be returned. Array of objects | X | |
|
|
|
| FRAPP API | /api/frapp/ | date (date) | If date not given, today will be returned. Array of objects | X | |
|
|
|
|
|
|
**Playout**
|
|
|
|
... | ... | @@ -76,6 +77,3 @@ |
|
|
| Post publication | cba.fro.at/wp-json/wp/v2/posts/ | post_parent (= cba_series_id), post_title, post_content, post_category, language_id, production_date, broadcast_date, is_copyright (boolean), attachment_id | | | X | |
|
|
|
| Get all categories | cba.fro.at/wp-json/wp/v2/categories?per_page=100 | | Array of objects | X | | |
|
|
|
| Get all languages | cba.fro.at/wp-json/wp/v2/language?per_page=100 | | Array of objects | X | | | |
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|