POST api/Competitions

Request Information

URI Parameters

None.

Body Parameters

Competition
NameDescriptionTypeAdditional information
IdCompetition

integer

None.

IdAthlete

integer

None.

IdMarathon

integer

None.

Athlete

Athlete

None.

Marathon

Marathon

None.

Request Formats

application/json, text/json

Sample:
{
  "IdCompetition": 1,
  "IdAthlete": 1,
  "IdMarathon": 1,
  "Athlete": {
    "IdAthlete": 1,
    "Surname": "sample string 2",
    "Name": "sample string 3",
    "Patronymic": "sample string 4",
    "Login": "sample string 5",
    "Pass": "sample string 6",
    "Gender": "sample string 7",
    "BDay": "2026-01-31T10:22:12.4047645-06:00",
    "Country": "sample string 8"
  },
  "Marathon": {
    "IdMarathon": 1,
    "NameMarathon": "sample string 2"
  }
}

Response Information

Resource Description

Competition
NameDescriptionTypeAdditional information
IdCompetition

integer

None.

IdAthlete

integer

None.

IdMarathon

integer

None.

Athlete

Athlete

None.

Marathon

Marathon

None.

Response Formats

application/json, text/json

Sample:
{
  "IdCompetition": 1,
  "IdAthlete": 1,
  "IdMarathon": 1,
  "Athlete": {
    "IdAthlete": 1,
    "Surname": "sample string 2",
    "Name": "sample string 3",
    "Patronymic": "sample string 4",
    "Login": "sample string 5",
    "Pass": "sample string 6",
    "Gender": "sample string 7",
    "BDay": "2026-01-31T10:22:12.4047645-06:00",
    "Country": "sample string 8"
  },
  "Marathon": {
    "IdMarathon": 1,
    "NameMarathon": "sample string 2"
  }
}