Backend Routes - RizzaCarla/Satisfy GitHub Wiki
HTML
GET / StaticPagesController#root
API Endpoints
users
GET /api/users
- returns the user's library
POST /api/users
- sign up
sessions
POST /api/session
- log in
DELETE /api/session
- log out
likes
GET /api/likes/
- returns the specific like
GET /api/likes/:id
- returns all the likes
POST /api/likes
- creates a new like
PATCH /api/likes/:id
- edits an existing like
DELETE /api/likes/:id
- deletes an existing like
songs
GET /api/songs
- returns relevant song or returns a list of songs filtered by data/params
GET /api/songs/:id
- returns song
albums
GET /api/albums
- returns relevant album or returns a list of albums filtered by data/params
GET /api/albums/:id
- returns album
artists
GET /api/artists
- returns relevant artist or returns a list of artists filtered by data/params
GET /api/artists/:id
- returns artist