Skip to content

Small crud api for a music manager where you can add songs and create playlists.

Notifications You must be signed in to change notification settings

kfryauff/music-manager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ReadMe

Music Manager Api

Music Manager Api is meant to provide a simplistic api for retrieving and arranging songs and playlists with ratings from 1 to 10.

Endpoints include:

Song routes

  1. POST '/songs'
  • Add songs to the db
  • req.body can include: title, artist, and rate
  1. GET '/songs'
  • Retrieve all songs from the db
  1. GET '/song/:song_id'
  • Retrieve a song by song_id
  1. PUT '/song/:song_id'
  • Update song by song_id
  1. DELETE '/song/:song_id'
  • Remove song with song_id from db

Playlist routes

  1. POST '/playlists'
  • Add empty playlist to db
  • req.body can include: title
  1. GET '/playlists'
  • Retrieve all playlists from the db
  1. GET '/playlist/:playlist_id'
  • Retrieve playlist with playlist_id
  1. PUT '/playlist/:playlist_id'
  • Modify/Update playlist with playlist_id
  1. DELETE 'playlist/:playlist_id'
  • Remove playlist from db
  1. GET '/playlist/:playlist_id/songs'
  • Retrieve all songs associated with playlist with playlist_id
  1. POST '/playlist/:playlist_id/song/:song_id'
  • Modify playlist with playlist_id to include song with sond_id
  1. DELETE '/playlist/:playlist_id/song/:song_id'
  • Remove song with song_id from playlist with playlist_id

About

Small crud api for a music manager where you can add songs and create playlists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published