This project is the solution to a technical challenge. Its purpose is to expose an REST API that will manage a voting session in an assembly and for this the creation of four endpoints was requested.
É necessário que tenha o Docker e docker-compose instalado na sua máquina;
docker-compose up
POST /api/v1/issue
{
"title": "string",
"description": "string",
"owner": "string"
}
POST /api/v1/session/{isueId}
Parâmetro | Tipo | Descrição |
---|---|---|
issueId |
Long |
Obrigatório. ID of the issue that the session will be opened |
POST /api/v1/vote
{
"sessionId": 0,
"cpf": "string",
"voteChoice": "YES"
}
GET /api/v1/vote//{sessionId}
Parâmetro | Tipo | Descrição |
---|---|---|
sessionId |
Integer |
Obrigatório. ID of the session that you want the result |