This is the replay API of Gruppe Adler. It holds and therefore also serves all replay data (actual data where which unit was etc.). It is used by aar.gruppe-adler.de and grad_replay_intercept.
A docker image is available on Docker Hub.
AUTH_TOKEN. The default value is MEH.To setup a development enviornment just clone this repository, install all dependencies with npm install and then start the development server with npm run serve.
Some endpoints require Authorization. Just set the Authorization HTTP header with value Bearer <AUTH_TOKEN>. For an explanation on how to configure the AUTH_TOKEN see Setup & Configuration.
/Description: Returns array containing meta data of all replays.
Requires Authorization?: No
Example Response:
[
{
"date": "2019-05-18 15:28:06",
"duration":34,
"missionName":"replayTest",
"worldName":"Stratis",
"id":0,
"frameCount":30,
"config": {
"id":1,
"precision":1,
"sendingChunkSize":10,
"stepsPerTick":1,
"trackShots":true,
"trackedAI":true,
"trackedSides":["west","east","civilian"],
"trackedVehicles":true
}
},
// [...]
]
/:idDescription: Returns replay with given id.
Requires Authorization?: No
Example Response:
{
"date": "2019-05-18 15:28:06",
"duration": 34,
"missionName": "replayTest",
"worldName": "Stratis",
"id": 0,
"frameCount":30,
"config": {
"precision": 1,
"sendingChunkSize": 10,
"stepsPerTick": 1,
"trackShots": true,
"trackedAI": true,
"trackedSides": ["west", "east", "civilian"],
"trackedVehicles": true
}
}
/:id/data/:offsetDescription: Returns data from replay with given id with given offset. The offset is taken times 10 and there are always a maximum of ten frames in one response so /0/data/2 will return frames 20-29 from replay 0.
Requires Authorization?: No
Example Response:
[
{
"id": 51,
"time": "12:00:28",
"data": [
{
"id": 821,
"color": "rgba(0,76,153,1)",
"direction": 132,
"group": " (Alpha 1-1)",
"icon": "iconMan",
"name": "Willard",
"position": [
1946.40283203125,
5663.35107421875
],
"target": null
},
// [...]
]
},
{
"id": 52,
"time": "12:00:29",
"data": [
{
"id": 839,
"color": "rgba(0,76,153,1)",
"direction": 124,
"group": " (Alpha 1-1)",
"icon": "iconMan",
"name": "Willard",
"position": [
1949.318359375,
5663.4638671875
],
"target": null
},
// [...]
]
},
// [...]
]
/:idDescription: Deletes replay with given id.
Requires Authorization?: Yes
/Description: Creates new replay.
Requires Authorization?: Yes
Example Request Body:
// n/a
Content type
Image
Digest
Size
74.5 MB
Last updated
over 4 years ago
docker pull gruppeadler/replay