Election Management API (1.0.0)

Download OpenAPI specification:Download

This API provides the endpoints for getting candidates and their parties.

Public Endpoints

Endpoints accessible without authentication.

Each endpoint has to be prefixed with rckt.be/api.

Get all of the parties

Fetches details of all parties, including their total vote count. And a link to the endpoint containing more detailed information like a list of all of the candidates that belong to the party.

Sequence Diagram

Responses

Response samples

Content type
application/json
{
  • "parties": [
    ],
  • "_links": {
    }
}

Get details of a specific party

Fetches details of a specific party by its ID, including their total vote count.

Sequence Diagram

path Parameters
partyId
required
integer

The ID of the party to retrieve.

Responses

Response samples

Content type
application/json
{
  • "party": {
    }
}

Get details of a specific candidate

Fetches details of a specific candidate by his/her party and candidate Id

Sequence Diagran

path Parameters
partyId
required
integer

The ID of the party to retrieve.

candidateId
required
integer

The candidateId of the candidate to retrieve.

Responses

Response samples

Content type
application/json
{
  • "candidate": {
    }
}