Requests all buildings of the current user (provided by the JWT token; authentication is required)
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Request Code Samples
curl --location --request GET '/buildings/list' \
--header 'Authorization: Bearer <token>'
Responses
application/json {
"buildings": [
{
"id": 0,
"name": "string",
"type": {
"def_id": 0,
"token_name": "string"
},
"production": {
"id": 0,
"cycles": {
"total": 0,
"completed": 0
},
"is_active": true,
"time_end": "2019-08-24T14:15:22.123Z",
"products_in": [
{
"id": 0,
"token_name": "string",
"amount": {
"total": 0,
"current": 0
}
}
],
"products_out": [
{
"id": 0,
"token_name": "string",
"amount": {
"total": 0,
"current": 0
}
}
]
}
}
]
}
Modified at 2025-03-01 17:46:23