Skip to content

SpottyFi/PopularSongs

Repository files navigation

Spottyfi

An online music streaming service

Related Projects

Table of Contents

  1. Usage
  2. API Usage
  3. Requirements
  4. Development

Usage

Some usage instructions

API-Usage

POST (/artist) - Add a song to an artist's album with given artist and album IDs

{
    artistId: [REQUIRED: The song's artist ID],
    albumId: [REQUIRED: The song's album ID],
    name: [REQUIRED: The name of the song],
    length: [REQUIRED: The length of the song],
    streams: [OPTIONAL: The number of times the song has been streamed],
    popularity: [OPTIONAL: The number of likes for this song]
}

GET (/artist/:artistId) - Get all the songs from the given artist

PUT (/artist/update) - Update a song's information using it's ID

{
    artistId: [REQUIRED: The song's artist ID],
    albumId: [REQUIRED: The song's album ID],
    songId: [REQUIRED: The song's ID],
    name: [OPTIONAL: The name of the song],
    length: [OPTIONAL: The length of the song],
    streams: [OPTIONAL: The number of times the song has been streamed],
    popularity: [OPTIONAL: The number of likes for this song]
}

DELETE (/artist/delete) - Delete a song from an album

{
    artistId: [REQUIRED: The song's artist ID],
    albumId: [REQUIRED: The song's album ID],
    songId: [REQUIRED: The song's ID],
}

Requirements

An nvmrc file is included if using nvm.

  • Node 6.13.0
  • etc

Development

Installing Dependencies

From within the root directory:

npm install -g webpack
npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors