Server
Server information is used to configure the server settings and is used to retrieve information about the server.
The Server Model
A server model contains the properties that are used to configure the server settings.
attributes object to store any key-value pairs that can be used to store additional information about the session.Scheme
- Name
id- Type
- integer
- Description
- The server ID
- Name
registration- Type
- boolean
- Description
- Whether the server allows users to register
- Name
readonly- Type
- boolean
- Description
- Whether the new user is automatically asigned a read-only access if not defined upon registration
- Name
deviceReadonly- Type
- boolean
- Description
- Whether the new user is automatically asigned a device-readonly access if not defined upon registration
- Name
limitCommands- Type
- boolean
- Description
- Whether the new user is automatically asigned a limit-commands access if not defined upon registration
- Name
map- Type
- string
- Description
- The map to use for the new user if not defined upon registration
- Name
bingKey- Type
- string
- Description
- The Bing Maps key to use for the new user if not defined upon registration
- Name
mapUrl- Type
- string
- Description
- The map URL to use for the new user if not defined upon registration
- Name
poiLayer- Type
- string
- Description
- The POI layer to use for the new user if not defined upon registration
- Name
latitude- Type
- number
- Description
- The default location's latitude to use if not defined
- Name
longitude- Type
- number
- Description
- The default location's longitude to use if not defined
- Name
zoom- Type
- integer
- Description
- The default zoom level to use if not defined
- Name
version- Type
- string
- Description
- The version of the server
- Name
forceSettings- Type
- boolean
- Description
- Whether to force the server settings to be applied to users
- Name
coordinateFormat- Type
- string
- Description
- The coordinate format to use for the new user if not defined upon registration
- Name
openIdEnabled- Type
- boolean
- Description
- Whether OpenId Connect is enabled to be used
- Name
openIdForce- Type
- boolean
- Description
- Whether OpenId Connect is forced to be used
- Name
attributes- Type
- object
- Description
- A key-value pair object to store any additional information about the server
Retrieve server information
This endpoint allows you to retrieve server information. No authentication required.
Response schema
- Name
application/json- Type
- schema
- Description
Responses
- Name
200- Type
- success
- Description
Request
curl --location 'https://gw.onemap8.com/api/server' \
--header 'Accept: application/json'
Response
{
"id": 0,
"registration": true,
"readonly": true,
"deviceReadonly": true,
"limitCommands": true,
"map": "string",
"bingKey": "string",
"mapUrl": "string",
"poiLayer": "string",
"latitude": 0,
"longitude": 0,
"zoom": 0,
"version": "string",
"forceSettings": true,
"coordinateFormat": "string",
"openIdEnabled": true,
"openIdForce": true,
"attributes": { }
}
Update server information
This endpoint allows you to update server information. Successful execution is subject to permissions.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Request body schema
- Name
application/json- Type
- schema
- Description
Body schema
- Name
id- Type
- integer
- Description
- The server ID
- Name
registration- Type
- boolean
- Description
- Whether the server allows users to register
- Name
readonly- Type
- boolean
- Description
- Whether the new user is automatically asigned a read-only access if not defined upon registration
- Name
deviceReadonly- Type
- boolean
- Description
- Whether the new user is automatically asigned a device-readonly access if not defined upon registration
- Name
limitCommands- Type
- boolean
- Description
- Whether the new user is automatically asigned a limit-commands access if not defined upon registration
- Name
map- Type
- string
- Description
- The map to use for the new user if not defined upon registration
- Name
bingKey- Type
- string
- Description
- The Bing Maps key to use for the new user if not defined upon registration
- Name
mapUrl- Type
- string
- Description
- The map URL to use for the new user if not defined upon registration
- Name
poiLayer- Type
- string
- Description
- The POI layer to use for the new user if not defined upon registration
- Name
latitude- Type
- number
- Description
- The default location's latitude to use if not defined
- Name
longitude- Type
- number
- Description
- The default location's longitude to use if not defined
- Name
zoom- Type
- integer
- Description
- The default zoom level to use if not defined
- Name
version- Type
- string
- Description
- The version of the server
- Name
forceSettings- Type
- boolean
- Description
- Whether to force the server settings to be applied to users
- Name
coordinateFormat- Type
- string
- Description
- The coordinate format to use for the new user if not defined upon registration
- Name
openIdEnabled- Type
- boolean
- Description
- Whether OpenId Connect is enabled to be used
- Name
openIdForce- Type
- boolean
- Description
- Whether OpenId Connect is forced to be used
- Name
attributes- Type
- object
- Description
- A key-value pair object to store any additional information about the server
Response schema
- Name
application/json- Type
- schema
- Description
Responses
- Name
200- Type
- success
- Description
- Name
400- Type
- error
- Description
Bad Request
- Name
401- Type
- error
- Description
Not authorized
Request
curl --location --request PUT 'https://gw.onemap8.com/api/server' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Basic {your_access_token}' \
--data '{
"id": "<integer>",
"registration": "<boolean>",
"readonly": "<boolean>",
"deviceReadonly": "<boolean>",
"limitCommands": "<boolean>",
"map": "<string>",
"bingKey": "<string>",
"mapUrl": "<string>",
"poiLayer": "<string>",
"latitude": "<number>",
"longitude": "<number>",
"zoom": "<integer>",
"version": "<string>",
"forceSettings": "<boolean>",
"coordinateFormat": "<string>",
"openIdEnabled": "<boolean>",
"openIdForce": "<boolean>",
"attributes": {}
}'
Response
{
"id": 0,
"registration": true,
"readonly": true,
"deviceReadonly": true,
"limitCommands": true,
"map": "string",
"bingKey": "string",
"mapUrl": "string",
"poiLayer": "string",
"latitude": 0,
"longitude": 0,
"zoom": 0,
"version": "string",
"forceSettings": true,
"coordinateFormat": "string",
"openIdEnabled": true,
"openIdForce": true,
"attributes": { }
}
Reverse geocode coordinates
Reverse geocode a latitude/longitude pair to a human-readable address string.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Query Parameters
- Name
latitude- Type
- number (double) required
- Description
- Name
longitude- Type
- number (double) required
- Description
Responses
- Name
200- Type
- success
- Description
- Name
text/plain- Type
- response schema
- Description
Address string
- Name
500- Type
- error
- Description
Reverse geocoding is not enabled
Request
curl --location 'https://gw.onemap8.com/api/server/geocode?latitude=<number>&longitude=<number>' \
--header 'Authorization: Basic {your_access_token}'
Response
123 Example Street, City, Country
Fetch available timezones
Returns a list of all available timezone strings.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Responses
- Name
200- Type
- success
- Description
- Name
application/json- Type
- response schema
- Description
Arrayof timezone strings
Request
curl --location 'https://gw.onemap8.com/api/server/timezones' \
--header 'Authorization: Basic {your_access_token}'
Response
["Africa/Abidjan", "America/New_York", "Europe/London", "..."]
Upload a server file
Upload a binary file to the server at the specified path.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Path parameters
- Name
path- Type
- string required
- Description
Request body schema
- Name
application/octet-stream- Type
- schema
- Description
Binary file content
Responses
- Name
200- Type
- success
- Description
- OK
- Name
400- Type
- error
- Description
- Bad Request
Request
curl --location 'https://gw.onemap8.com/api/server/file/<path>' \
--header 'Content-Type: application/octet-stream' \
--header 'Authorization: Basic {your_access_token}' \
--data-binary '@/path/to/file'
Response
OK
Trigger garbage collection
Forces a garbage collection cycle on the server.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Responses
- Name
200- Type
- success
- Description
- OK
Request
curl --location 'https://gw.onemap8.com/api/server/gc' \
--header 'Authorization: Basic {your_access_token}'
Response
OK
Fetch cache diagnostics
Returns plain text cache diagnostics for the server.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Responses
- Name
200- Type
- success
- Description
- Name
text/plain- Type
- response schema
- Description
Cache diagnostics string
Request
curl --location 'https://gw.onemap8.com/api/server/cache' \
--header 'Authorization: Basic {your_access_token}'
Response
Cache diagnostics output...
Reboot the server process
Triggers a reboot of the server process.
Authorizations
BasicAuth or ApiKey
- Name
BasicAuth- Type
- scheme
- Description
HTTP Authorization Scheme: basic
- Name
ApiKey- Type
- scheme
- Description
HTTP Authorization Scheme: bearer
Responses
- Name
200- Type
- success
- Description
- OK
Request
curl --location --request POST 'https://gw.onemap8.com/api/server/reboot' \
--header 'Authorization: Basic {your_access_token}'
Response
OK
Check server health
Returns plain text status for basic uptime monitoring. No authentication required.
Responses
- Name
200- Type
- success
- Description
- Name
text/plain- Type
- response schema
- Description
OK
- Name
500- Type
- error
- Description
Service is unavailable
Request
curl --location 'https://gw.onemap8.com/api/health'
Response
OK