Skip to content

Instantly share code, notes, and snippets.

@borisd
Last active November 1, 2015 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borisd/72e7f48e1dcef301fdf4 to your computer and use it in GitHub Desktop.
Save borisd/72e7f48e1dcef301fdf4 to your computer and use it in GitHub Desktop.
APIs for Redux 101 Workshop - by 500Tech.com

APIs for the sample server

Get Playlists

GET http://redux101.500tech.com/playlists

Get playlist details

GET http://redux101.500tech.com/playlists/[playlist-id]

Add song to playlist

POST http://redux101.500tech.com/playlists/[playlist-id]

Params as JSON:

{
  "youtubeUrl": "[Youtube url]"
}

UP-vote song

POST http://redux101.500tech.com/playlists/[playlist-id]/up

Params as JSON:

{
  "songId": "[ID of song in playlist]"
}

DOWN-vote song

POST http://redux101.500tech.com/playlists/[playlist-id]/down

Params as JSON:

{
  "songId": "[ID of song in playlist]"
}

Brought to you by 500Tech.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment