cURL
curl --request POST \ --url http://localhost:4040/query/game/cql \ --header 'Content-Type: application/json' \ --data '{ "CQL": "CONTAINS(Health)" }'
[ { "id": 0, "data": [ { "nickname": "CoolMage" }, { "HP": 21316 } ] } ]
Query the Cardinal ECS state using Cardinal Query Language (CQL)
This endpoint takes an input of a CQL (Cardinal Query Language) query that will be executed
The body is of type object.
object
Successful response
The response is of type object[].
object[]