Commit a9e706f7 authored by Christian Pointner's avatar Christian Pointner
Browse files

there is only one note per timeslot - resource path should reflect that

parent 60a4c1fb
......@@ -14,12 +14,12 @@
| Get timeslots by ID | /api/v1/timeslots/1 | | Timeslot object | X | |
| Update timeslot | /api/v1/shows/1/schedules/timeslots/1 | memo (string), playlist_id (int), is_repetition (boolean) | Timeslot object | | X | |
| Get note by ID | /api/v1/notes/1 | | Note object | X | |
| Get notes by ID | /api/v1/notes/ | ids (comma separated integer values) | Array of note objects | X | |
| Get notes by show | /api/v1/shows/1/notes/ | | Array of note objects | X | |
| Get note by timeslot | /api/v1/shows/1/timeslots/1/notes/ | | Array of note objects (will contain one note at max) | | X | | |
| Get note by timeslot | /api/v1/shows/1/schedules/1/timeslots/1/notes/ | | Array of note objects (will contain one note at max) | X | |
| Add note | /api/v1/shows/1/schedules/1/timeslots/1/notes | title, slug, summary, content, image, status (0 = cancellation, 1 = recommendation, 2 = repetition), cba_id (int) | | | | X |
| Update/Delete note | /api/v1/shows/1/schedules/1/timeslots/1/notes/1 | title, slug, summary, content, image, status (0 = cancellation, 1 = recommendation, 2 = repetition), cba_id (int) | Note object | | X | | X |
| Get notes by ID | /api/v1/notes/ | ids (comma separated integer values) | Array of Note objects | X | |
| Get notes by show | /api/v1/shows/1/notes/ | | Array of Note objects | X | |
| Get note by schedule | /api/v1/shows/1/schedules/1/notes/ | | Array of Note objects | X | | |
| Get note by timeslot | /api/v1/shows/1/timeslots/1/note/ | | Note object | X | | |
| Get note by schedule/timeslot | /api/v1/shows/1/schedules/1/timeslots/1/note/ | | Note object | X | |
| Add/Update/Delete note | /api/v1/shows/1/schedules/1/timeslots/1/note | title, slug, summary, content, image, status (0 = cancellation, 1 = recommendation, 2 = repetition), cba_id (int) | | | X | X | X |
| Get user | /api/v1/users/1 | | User object | X | |
| Add user | /api/v1/users/1 | first_name (str), last_name (str), email (str), password (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 |
......@@ -84,4 +84,4 @@
| Upload | cba.fro.at/wp-json/wp/v2/media/ | filename | post_id (attachment) | | X | |
| 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
| Get all languages | cba.fro.at/wp-json/wp/v2/language?per_page=100 | | Array of objects | X | | |
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment