Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you decide to push your data per API, you have to use the API route /api/sources. This route can automatically decide if an entry needs to be created or updated - as long as the id is unique - over every source.

To create an entry, use the following request:

...

Info

The value :sourceName inside the API call must be adopted to your custom source name.
The source name must be in lowercase (wrong: EM2008, correct; em2008)

Request Body:

Code Block
{
    "id": "GERESP",
    "name": "EM 2008 - Final",
    "data": {
        "key": "GERESP",
        "Opponents": "Germany - Spain",
        "KickOff": "2008-06-29T20:45:00",
        "Result": "0:1",
        "Venue": "Ernst-Happel-Stadion, Vienna",
        "Weather": "Sunny, 27 °C (81 °F), 4% humidity",
        "Referee": "Roberto Rosetti (ITA)",
        "Latitude": "48.207208",
        "Longitude" : "16.420985"
    }
}

...