Query single entity
curl --request GET \
--url http://localhost:3917/entities/{id}import requests
url = "http://localhost:3917/entities/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3917/entities/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3917",
CURLOPT_URL => "http://localhost:3917/entities/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3917/entities/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3917/entities/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3917/entities/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"generation": 1,
"id": 1,
"ai": "<string>",
"collider": {
"hx": 123,
"hy": 123,
"hz": 123,
"shape": "Aabb"
},
"dead": true,
"gold": 123,
"health": [
123
],
"level": 1,
"mana": [
123
],
"physics_body": "<string>",
"projectile": true,
"role": "<string>",
"tags": [
"<string>"
],
"team": 1,
"transform": {
"position": [
123
],
"rotation": [
123
],
"scale": [
123
]
},
"trigger_zone": "<string>",
"velocity": {
"linear": [
123
],
"angular": [
123
]
},
"visible_to": [
1
]
}World
Query single entity
GET
/
entities
/
{id}
Query single entity
curl --request GET \
--url http://localhost:3917/entities/{id}import requests
url = "http://localhost:3917/entities/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3917/entities/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3917",
CURLOPT_URL => "http://localhost:3917/entities/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3917/entities/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3917/entities/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3917/entities/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"generation": 1,
"id": 1,
"ai": "<string>",
"collider": {
"hx": 123,
"hy": 123,
"hz": 123,
"shape": "Aabb"
},
"dead": true,
"gold": 123,
"health": [
123
],
"level": 1,
"mana": [
123
],
"physics_body": "<string>",
"projectile": true,
"role": "<string>",
"tags": [
"<string>"
],
"team": 1,
"transform": {
"position": [
123
],
"rotation": [
123
],
"scale": [
123
]
},
"trigger_zone": "<string>",
"velocity": {
"linear": [
123
],
"angular": [
123
]
},
"visible_to": [
1
]
}Path Parameters
Entity id
Required range:
x >= 0Response
The entity's full component snapshot.
Required range:
x >= 0Required range:
x >= 0- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Show child attributes
Show child attributes
Required range:
x >= 0Required range:
x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes
Required range:
x >= 0