Giter Club home page Giter Club logo

cover-songs's Introduction

Cover Songs

Songs

Get all songs:

GET /api/v1/songs

Sample Response

Get one specific song:

GET /api/v1/songs/:id

Sample Response

Add new song(s):

POST /api/v1/songs

Sample Response

Covers

Get all songs:

GET /api/v1/covers

Sample Response

Get one specific cover:

GET /api/v1/covers/:id

Sample Response

Add new cover(s):

POST /api/v1/covers

Sample Response

Shared

Remove a specific song/cover:

DELETE /api/v1/:db/:id

Sample Response

Sample Responses

Endpoint: GET /api/v1/songs

Parameters: none

Response:

[
    {
        "id": 26,
        "song": "Respect",
        "original_artist": "Otis Redding",
        "release_year": 1965,
        "created_at": "2019-03-13T16:06:17.771Z",
        "updated_at": "2019-03-13T16:06:17.771Z"
    },
    {
        "id": 27,
        "song": "Cocaine",
        "original_artist": "J.J. Cale",
        "release_year": 1976,
        "created_at": "2019-03-13T16:06:17.776Z",
        "updated_at": "2019-03-13T16:06:17.776Z"
    },
    ...
]

Endpoint: GET /api/v1/songs/:id

Parameters: none

Response:

{
    "id": 26,
    "song": "Respect",
    "original_artist": "Otis Redding",
    "release_year": 1965,
    "created_at": "2019-03-13T16:06:17.771Z",
    "updated_at": "2019-03-13T16:06:17.771Z"
}

Endpoint: POST /api/v1/songs

Parameters:

{
    "song": "song",
    "original_artist": "artist",
    "release_year": "2019"
}

Response:

{
    "id": 72,
    "song": "song",
    "original_artist": "artist",
    "release_year": "2019"
}

Endpoint: GET /api/v1/covers

Parameters: none

Response:

[
    {
        "id": 2,
        "song_id": 26,
        "cover_artist": "Ike & Tina Turner",
        "release_year": 1969,
        "created_at": "2019-03-13T16:06:17.797Z",
        "updated_at": "2019-03-13T16:06:17.797Z"
    },
    {
        "id": 4,
        "song_id": 28,
        "cover_artist": "Elvis Presly",
        "release_year": 1956,
        "created_at": "2019-03-13T16:06:17.798Z",
        "updated_at": "2019-03-13T16:06:17.798Z"
    },
    ...
]

Endpoint: GET /api/v1/covers/:id

Parameters: none

Response:

{
    "id": 2,
    "song_id": 26,
    "cover_artist": "Ike & Tina Turner",
    "release_year": 1969,
    "created_at": "2019-03-13T16:06:17.797Z",
    "updated_at": "2019-03-13T16:06:17.797Z"
}

Endpoint: POST /api/v1/covers

Parameters:

{
	"song_id": "26",
	"cover_artist": "cover artist",
	"release_year": "2019"
}

Response:

{
    "id": 86,
    "song_id": "26",
    "cover_artist": "cover artist",
    "release_year": "2019"
}

Endpoint: DELETE /api/v1/:db/:id

Parameters: none

Response:

"[Song/Cover] [number] removed"

cover-songs's People

Contributors

geet084 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.