justinmauldin7 / Play_BE

0 stars 1 forks source link

Read Me

Play is an API that serves and organizes favorite songs and playlists. It is hosted on heroku at https://turing-play-music.herokuapp.com/

SCHEMA

Screen Shot 2019-03-19 at 1 11 11 PM

It responds to the following interactions.

Favorites

'GET /api/v1/favorites'

This displays all the favorited songs

Screen Shot 2019-03-28 at 7 29 31 AM

'GET /api/v1/favorites/:id'

This displays a single favorite by :id

Screen Shot 2019-03-28 at 9 27 39 AM

'PUT /api/v1/favorites/:id'

This updates a favorite, and returns the id associated with the favorite.

Screen Shot 2019-03-28 at 9 31 06 AM

'POST /api/v1/favorites' This adds a favorite to the database and returns its newly create id.

Screen Shot 2019-03-28 at 9 36 18 AM

'DELETE /api/v1/favorites/:id'

This deletes a favorite and returns a 204 no content.

Screen Shot 2019-03-28 at 9 38 56 AM

Playlists

'GET /api/v1/playlists/'

This displays all the playlists and their respective favorites

Screen Shot 2019-03-28 at 7 29 47 AM

'GET /api/v1/playlists/:id'

This displays a single playlists and its respective favorites

Screen Shot 2019-03-28 at 9 26 23 AM

'POST /api/v1/playlists/:id/favorites/:id'

This adds a favorited song to a playlist

Screen Shot 2019-03-28 at 9 30 12 AM

'Delete /api/v1/playlists/:id/favorites/:id'

This deletes a favorited song from a playlist

Screen Shot 2019-03-28 at 9 29 39 AM

Technologies

Javascript Kenx Express Travis CI Webpack

Created By Daniel Briechle & Justin Mauldin