Bot Service Controller

Save Captured Data

Path: /api/bots/capture-data

Method: POST

Example Http Request

POST /api/bots/capture-data HTTP/1.1
Content-Type: application/json
Content-Length: 394
Host: localhost:8080

{
  "playerId": "f34b47af-f7a9-4c67-9ec1-6dabb3f95f8c",
  "displayName": "NugsCap",
  "frameRate": 20,
  "frames": [
    {
      "position": {
        "x": -10.04714,
        "y": 0.7729587,
        "z": -3.156625
      },
      "velocity": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "rotation": 92.48674,
      "jumpTime": 0.0,
      "emoteTrigger": null
    }
  ]
}

Example Http Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 17

{"success":false}

Example Curl Request

$ curl 'http://localhost:8080/api/bots/capture-data' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{
  "playerId": "f34b47af-f7a9-4c67-9ec1-6dabb3f95f8c",
  "displayName": "NugsCap",
  "frameRate": 20,
  "frames": [
    {
      "position": {
        "x": -10.04714,
        "y": 0.7729587,
        "z": -3.156625
      },
      "velocity": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "rotation": 92.48674,
      "jumpTime": 0.0,
      "emoteTrigger": null
    }
  ]
}'

Bot Service Controller