Skip to content

Frontend Routes

Irene Martinez edited this page Aug 12, 2022 · 4 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • POST /api/users - create new user

session

  • POST /api/session - log in to new session
  • DELETE /api/session - log out of session

playlists

  • GET /api/playlists - fetch playlists that belong to currentUser
  • GET /api/playlists/:id - fetch data relevant to selected playlist
  • POST /api/playlists - create new playlist
  • PATCH /api/playlists/:id - edit selected playlist
  • DELETE /api/playlists/:id - delete selected playlist

artists

  • GET /api/artists - fetch artists matching search
  • GET /api/artists/:id - fetch data relevant to selected artist

albums

  • GET /api/albums - fetch albums matching search
  • GET /api/albums/:id - fetch data relevant to selected album

songs

  • GET /api/songs - fetch songs matching search
  • GET /api/song/:id - fetch data relevant to selected song

Clone this wiki locally