Emirhan`s Music Suggester Documentation - bounswe/bounswe2019group9 GitHub Wiki
Music Suggestion
A user can GET, PUT and DELETE songs and the endpoint returns a JSON
object.
Usage
Url extension: /music/v1/songs
GET
{
"title": "Dark Side of The Moon",
"artist": "Pink Floyd"
}
PUT
If successful:
{
"title": "Symphony No. 40",
"artist": "Amadeus Mozart"
}
If not successful:
{
"message": "Song with id: {} does not exist",
}
DELETE
If successful:
{
"title": "They Don't Care About Us",
"artist": "Michael Jackson"
}
If not successful:
{
"message": "Song with id: {} does not exist",
}