Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is managed by standard REST verbs on either the collection or resource, as follows:

HTTP verbEndpointEffect
POST/api/users/v1/users/{user_profile_id}/favourite_channel_listsCreate a new channel list for the specified user profile
GET/api/users/v1/users/{user_profile_id}/favourite_channel_listsReturns a list of all the channel lists for the user profile
PUT/api/users/v1/users/{user_profile_id}/favourite_channel_lists/{favourite_channel_list_id}Updates one or more attributes of a list, for example to change the name
DELETE/api/users/v1/users/{user_profile_id}/favourite_channel_lists/{favourite_channel_list_id}Deletes a channel list

Adding a channel to a favourite channel list

...

POST /api/users/v1/users/{user_profile_id}/favourite_channel_lists/{favourite_channel_list_id}/relationships/channels/{channel_id}

...

DELETE /api/users/v1/users/{user_profile_id}/favourite_channel_lists/{favourite_channel_list_id}/relationships/channels/{channel_id}

...

GET /api/users/v1/users/{user_profile_id}/favourite_channel_lists/{favourite_channel_list_id}/relationships/channels

...

GET /api/users/v1/users/{user_profile_id}/favourite_channel_lists/relationships/channels

...