URL : /Votes
Auth required : No
Permissions required : None
Content Example:
{
"id": 1,
"ip": "81.83.102.133",
"songID": 3,
"points": 12
},
{
"id": 2,
"ip": "81.83.102.120",
"songID": 3,
"points": 3
},
{
"id": 3,
"ip": "81.83.112.80",
"songID": 1,
"points": 8
}
URL : /Votes/{id}
Auth required : No
Permissions required : None
Code: 200 Success
Content Example:
{
"id": 1,
"ip": "81.83.102.133",
"songID": 3,
"points": 12
}
Code: 404 Not Found
Vote not found! Try another ID!
URL : /Votes
Auth required : Yes
Permissions required : None
Request Body Example:
{
"ip": "string",
"songID": 0,
"points": 0
}
Code : 200 Success
The Vote has been succesfully added!
URL : /Votes/{id}
Auth required : Yes
Permissions required : Admin
Request Body Example:
{
"ip": "string",
"songID": 0,
"points": 0
}
Code : 200 Success
The vote with id '{id}' has been updated succesfully!
Code : 404 Not Found
Vote not found! Try another ID!
URL : /Artists/{id}
Auth required : Yes
Permissions required : Admin
Code : 200 Success
The vote with id '{id}' has been deleted succesfully!
Code : 404 Not Found
Vote not found! Try another ID!