Skip to content

API routes

Nic Gauer edited this page Mar 29, 2021 · 3 revisions

Users

  • Login

get /api/login
post /api/login

  • Signup

post /api/signup

  • Logout

delete /api/logout

Artist

  • Get Artist page

GET /api/:artistURL

  • Create Artist

GET /api/new-artist
POST /api/new-artist

  • Edit Artist page

GET /api/:artistURL/edit
POST /api/:artistURL/edit

Albums

  • Get Albums page

GET /api/:artistURL/:albumName

  • Create

GET /api/new-album
POST /api/new-album

  • Edit Album

GET /api/:artistURL/:albumName/edit
POST /api/:artistURL/:albumName/edit

Songs

  • Get Song

GET /api/:artistURL/:albumName/:songName

  • Download Song

GET /api/:artistURL/:albumName/:songName/download

  • Upload Song

GET /api/new-song
POST /api/new-song

  • Edit Song

GET /api/:artistURL/:albumName/:songName/edit
POST /api/:artistURL/:albumName/:songName/edit

Follows

  • Get Follows

GET /api/followed-artists/:userId

  • Create Follow

POST /api/new-follow/:userId/:artistId

  • Destroy Follow

DELETE /api/followed-artists/:userId/:artistId

Clone this wiki locally