GET http://127.0.0.1:8080/polls/1/alternatives/1/votes/1
Accept:application/hal+json
#!json
{
"voteId": 1,
"email": "[email protected]",
"_links": {
"self": {
"href": "http://127.0.0.1:8080/polls/1/alternatives/1/votes/1"
},
"votesCount": {
"href": "http://127.0.0.1:8080/polls/1/alternatives/1/votes/count"
}
}
}
Request
POST http://127.0.0.1:8080/polls/1/alternatives/1/votes/1
Content-Type:application/json
Accept:application/hal+json
#!json
{
"email" : "[email protected]"
}
Response: 201 CREATED
#!json
{
"voteId": 1,
"email": "[email protected]",
"_links": {
"self": {
"href": "http://127.0.0.1:8080/polls/1/alternatives/1/votes/1"
},
"votesCount": {
"href": "http://127.0.0.1:8080/polls/1/alternatives/1/votes/count"
}
}
}
GET http://127.0.0.1:8080/polls/1/alternatives/1/votes/count
Response: 200 OK
3
This README would normally document whatever steps are necessary to get your application up and running.
- Quick summary
- Version
- Learn Markdown
- Summary of set up
- Configuration
- Dependencies
- Database configuration
- How to run tests
- Deployment instructions
- Writing tests
- Code review
- Other guidelines
- Repo owner or admin
- Other community or team contact