-
Notifications
You must be signed in to change notification settings - Fork 1
Backend Routes
Madeline Wilson edited this page Nov 1, 2021
·
12 revisions
-
GET /StaticPagesController#root
-
GET /api/users/:idreturns details of a single user - their name, email, and profile picture, as well as any artists they are following and genres they have liked (through thefolloweesandgenresLikedassociations), or theiralbumsandfollowers(if they are an artist) -
POST /api/userssigns up a new user, returns current user information -
PATCH /api/users/:idedit a user (if current user matches :id) -
GET /api/users/searchallows for searching for users and artists (artists are users with an artist key of 'true')
-
POST /api/sessionlog-in -
DELETE /api/sessionlog-out
-
GET /api/albums/:idreturns all songs for a particular album, used for artist show page and search index
-
GET /api/songs/:idreturns information for a particular song, used for playing song on artist or home page
-
GET /api/genresreturns all genres, used for home page and search index -
GET /api/genres/:idreturns information for a particular genre