Competition API From Swagger 0.0.1-swagger

A fictional API for ApiBuilder tool features testing.

  • Contact: N/A
  • License: N/A

Resources

competitor

Operations

Method and Path Description
POST /competitors
GET /competitors/:id

competition

Operations

Method and Path Description
POST /competitions
GET /competitions/:id

Headers

No headers

Imports

No imports

Enums

CompetitionStatus

Name Value Description
pending pending

active active

closed closed

Interfaces

No interfaces

Models

competition

Example Json: Minimal | Full

Interfaces: None

A competition is a race game for the competitors to collect more vote points.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this competition.

name string No -

status CompetitionStatus Yes -

start_at date-time-iso8601 Yes -

end_at date-time-iso8601 Yes -

created_at date-time-iso8601 Yes -

updated_at date-time-iso8601 Yes -

competition_participant

Example Json: Minimal | Full

Interfaces: None

The competition participant is a competitor who is playing in a specific competition and he/she be able to win that.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this competition_participant.

competition_id uuid Yes -

competitor_id uuid Yes -

competitor

Example Json: Minimal | Full

Interfaces: None

The competitor can who can participate in a competition.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this competitor.

name string Yes -

vote

Example Json: Minimal | Full

Interfaces: None

The vote is created by voter and it concern for a competition_participant

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this voter.

competition_participant_id uuid Yes -

voter_id uuid Yes -

type string Yes -

points integer Yes -

voter

Example Json: Minimal | Full

Interfaces: None

The voter can vote for competition_participant.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this voter.

name string Yes -

Unions

No unions

Annotations

No annotations