-
Notifications
You must be signed in to change notification settings - Fork 1
Backend Routes
avvazana edited this page Nov 12, 2018
·
4 revisions
- GET/ StaticPagesController#root
- POST /api/session - logs in a user
- DELETE /api/session - logs out a user
- GET /api/users/:id - returns user information (profile & saved/followed items, followers & followed)
- POST /api/users - creates user profile
- GET /api/songs - returns all songs in database
- GET /api/songs/:songId - returns information on specific song (name, album)
- GET /api/albums - returns all albums
- GET /api/albums/:albumId - returns specific albums information
- GET /api/artists - returns all artists
- GET /api/artists/:artistId - returns specific artists information
- GET /api/playlists - returns all playlists
- GET /api/playlists/:playlistId - returns specific playlists information
- POST /api/playlists - add new playlist
- DELETE /api/playlists - delete a playlist
- POST /api/follows - add a follow
- DELETE /api/follows - remove a follow