API
The Zonemaster GUI provides an API to access specific resource and perform
specific tasks by adding a path to the Zonemaster GUI base URL, e.g.
https://zonemaster.net/.
For the paths the following keys are used:
<lang>: A Language Code<test-id>: A string of 16 characters in0-9a-f(hexadecimal)<domain>: A domain name to be tested (temporarily not supported)
The supported paths are the following:
/<lang>/result/<test-id>: access the result page with results for the test with<test-id>in the selected language, e.g.https://zonemaster.net/en/result/7e363fb606343397./<lang>/faq: access the FAQ in the selected language, e.g.https://zonemaster.net/en/faq./api: With JSON RPC call access the Zonemaster Backend RPC-API, e.g.https://zonemaster.net/api.
The GUI will redirect from <path> (e.g. https://zonemaster.net/) to
<lang>/<path> (https://zonemaster.net/en/) automatically using the
user browser language, if supported and configured by the installation.
Else it uses the default language defined in Zonemaster-GUI.
The following paths are temporarily not supported:
<lang>/run-test: access the input form.<lang>/run-test/<domain>: populate the input form with<domain>.
Language Codes
Zonemaster uses ISO 639-1 two-letter language codes, in lower case. A default installation of Zonemaster-GUI currently has support for the following language codes and languages:
dafor Danish languageenfor English language, the default language in a default installationesfor Spanish languagefifor Finnish languagefrfor French languagenbfor Norwegian languageslfor Slovenian languagesvfor Swedish language
A non-default installation may have support for only some of the languages or maybe other languages.