Skip to content

Api Examples

AndSte01 edited this page Feb 6, 2022 · 1 revision

Here are some more examples for the api.

1. REST Api

1.1. competition subdirectory

1.1.1. without id

parameter value
none
[
  {
    "name": "Competition 0",
    "location": "location",
    "date": "2021-11-30",
    "isLive": true,
    "areas": 3,
    "id": 0,
    "featureSet": 2
  },
  {
    "name": "Competition 1",
    "date": "2021-11-30",
    "areas": 1,
    "id": 1,
    "featureSet": 1
  },
  {
    "name": "Competition 2",
    "id": 2,
    "featureSet": 0
  }
]

1.1.2. with id

1.1.2.1. A response from a data provider implementing feature set 2

parameter value
id 0
{
  "name": "Competition 0",
  "location": "location",
  "date": "2021-11-30",
  "isLive": true,
  "areas": 3,
  "id": 0,
  "featureSet": 2
}

1.1.2.2. A response implementing feature set 1 with some optional elements

parameter value
id 1
{
  "name": "Competition 1",
  "date": "2021-11-30",
  "areas": 1,
  "id": 1,
  "featureSet": 1
}

1.1.2.3. A response from a data provider implementing feature set 0 with no optional data

parameter value
id 2
{
  "name": "Competition 2",
  "id": 2,
  "featureSet": 0
}

2. SSE Api