Backend Routes - kyunas96/yetis-list GitHub Wiki
Backend Routes
HTML
API Endpoints
users
GET /api/users/current-gets the current user
POST /api/users/signup-sign up
POST /api/users/login-login
GET /api/users/:id-get a specified user
playlists
GET /api/playlists/-returns relevant playlist (filtered by data/params)
GET /api/playlists/:playlistId-returns a playlist
GET /api/playlists/user/:userId-returns a playlist
POST /api/playlists-creates a playlist
POST /api/playlists/generate-returns a new playlist from a seed (artist, track, genre)
POST /api/playlists/getList-gets list item for search bar
PATCH /api/playlists/:playlistId-edit a playlist
DELETE /api/playlists/:playlistId-remove a playlist
songs
POST /api/songs-adds a song to playlist
PATCH /api/songs-removes a song from a playlist
comments
GET /api/comments-returns comments for a playlist
POST /api/comments-posts comments to a playlist
PATCH /api/comments/:commentId-edit a comment on a playlist
DELETE /api/comments/:playlistId/:commentId-remove a comment on a playlist