-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
PlasmaNuke edited this page Feb 15, 2024
·
1 revision
-
GET /*StaticPagesController#frontend_index
-
GET /api/users/- returns the user information for all users -
GET /api/users/:username- returns the user information for a single user by their username -
POST /api/users/- Signs up a user and logs them in
-
GET /api/session/- returns the user information for the user logged in for the current session -
POST /api/session/- logs in a user -
DELETE /api/session/- logs out a user
-
GET /api/tracks/- returns the tracks information for all tracks -
GET /api/tracks/:id- returns the track information for a single track by their database id -
GET /api/users/:username/tracks/:title- returns the track information for a single track by its title through the user's ActiveRecord association -
POST /api/tracks/- creates a new track -
PUT /api/tracks/:id- updates an existing track by its database id according to the request parameters set by the user via frontend form -
DELETE /api/tracks/:id- deletes an existing track by its database id
-
GET /api/playlists/- returns the playlist information for all the playlists -
GET /api/playlists/:id- returns the playlist information for a single track by its database id -
POST /api/playlists/- creates a new playlist -
PUT /api/playlists/:id- updates an existing playlist by its database id according to the request parameters -
DELETE /api/playlists/:id- deletes an existing playlist by its database id