justinmauldin7 / Play_BE

0 stars 1 forks source link

Delete playlist endpoint #21

Closed danbriechle closed 5 years ago

danbriechle commented 5 years ago

As a user when I send a delete request to /api/v1/playlists/:playlist_id/favorites/:id

The favorite with :id is removed from the playlist with :playlist_id

This deletes the existing record in the Playlist Favorites table that creates the relationship between this song favorite and playlist. If the playlist/favorite cannot be found, a 404 will be returned.

If successful, this request will return:

{ "message": "Successfully removed SONG_NAME from PLAYLIST_NAME" }