Town Requests
Get One Town
GET https://yourdomain/baseURL/townURL/one/:name
Get data of one town
Path Parameters
Name
Type
Description
name
string
Name of the town
{
"name": string,
"mayor": string,
"board": string,
"nation": string,
"taxes": int,
"registeredtime": timestamp,
"neutral": int,
"residents": [string, string]
}{
"error":"No town found !"
}Get All Towns
GET https://yourdomain/baseURL/townURL/all/:order?min=int
Get towns in max range defined in config.json
Path Parameters
Name
Type
Description
order
string
How you want the data ordered, it can be : name, name-desc, id, id-desc
Query Parameters
Name
Type
Description
min
integer
Minimal value of the result, for example to get the 50st result
Last updated
Was this helpful?