-
Notifications
You must be signed in to change notification settings - Fork 1
Backend Routes
SoundTrack uses the following API routes to dynamically update the page to create a single-page app-like feel for the user for specific features.
-
GET /api/users/:id- returns the users profile information -
POST /api/users/- user sign up
-
GET /api/users/:id/albums/:id/songs- returns all songs from an album owned by a user -
POST /api/users/:id/albums/:id/songs- adds a song to an album owned by the user -
GET /api/users/:id/albums/:id/songs:id- return a song's information -
PATCH /api/users/:id/albums/:id/songs:id- edit a song's information -
DELETE /api/users/:id/albums/:id/songs:id- delete a song
-
GET /api/users/:id/albums/- returns all albums owned by a user -
POST /api/users/:id/albums/:id/- adds an album owned by the user -
GET /api/users/:id/albums/:id/- return an album's information (song list, user who created album) -
PATCH /api/users/:id/albums/:id/- edit an album's information -
DELETE /api/users/:id/albums/:id/- delete an album
-
POST /api/session- log in -
DELETE /api/session- log out