World
The World API allows you to interact with the world and exploit its resources.
Access a cell information.
The cell needs to be in your accessible's cell inventory.
/world/cell
@POST
{
"x": Integer,
"y": Integer
} Scan a Cell using a Scanner.
Once scanned, you can always access the cell information
as long as it's in your accessible's cell inventory.
You can have up to 5 cell stored in your accessible's cell inventory
/world/cell/scan
@POST
{
"x": Integer,
"y": Integer
} Access workers activity on a cell.
The cell needs to be in your accessible's cell inventory.
/world/cell/workers
@POST
{
"x": Integer,
"y": Integer
} Send a worker to work on a cell.
The worker needs to match the resource on the cell.
The cell needs to be in your accessible's cell inventory.
The cell needs to be unoccupied or owned by you.
/world/cell/workers/add
@POST
{
"x": Integer,
"y": Integer,
"workerID":"The id of the worker"
} Remove workers or a specified worker from a cell.
You need to own the worker.
Resources are collected before the worker is removed.
/world/cell/workers/remove
@POST
{
"x": Integer,
"y": Integer,
"workerID":"The id of the worker" //OPTIONAL
}
Collect workers or a specified worker on a cell.
You need to own the worker.
/world/cell/workers/collect
@POST
{
"x": Integer,
"y": Integer,
"workerID":"The id of the worker" //OPTIONAL
}