Untitled
GET https://yourdomain/baseURL/nationURL/one/:name
Get the data of a nation
Path Parameters
Name
Type
Description
name
string
Name of the nation
{
"name": string,
"capital": string,
"allies": [string, string],
"ennemies": [string, string],
"board": string,
"registeredtime": timestamp,
"neutral": int,
"color": string,
"public": int,
"towns": [string, string]
}{
"error":"No nation found !"
}Get All Residents
GET https://yourdomain/baseURL/nationURL/all/:order?min=int
Get nation 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 5st result
Last updated
Was this helpful?