Bot Service Controller
Add Bot Data
Path: /api/bots/add
Method: POST
Example Http Request
POST /api/bots/add HTTP/1.1
Content-Type: application/json
Content-Length: 203
Host: localhost:8080
{
"frameRate": 10,
"frames": [
{
"position": { "x": -2.802542, "y": 0.3160083, "z": -1.385097 },
"rotation": 171.3242,
"velocity": { "x": 0, "y": -5.561839, "z": 0 },
"jumpTime": 0
}]
}
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: 107
{"message":"Added movement data with 1 frames with a frame rate of 10: (#Avatars: N/A, #MovementFiles: 1)"}
Example Curl Request
$ curl 'http://localhost:8080/api/bots/add' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"frameRate": 10,
"frames": [
{
"position": { "x": -2.802542, "y": 0.3160083, "z": -1.385097 },
"rotation": 171.3242,
"velocity": { "x": 0, "y": -5.561839, "z": 0 },
"jumpTime": 0
}]
}'
Bot Service Controller