-
Notifications
You must be signed in to change notification settings - Fork 49
API Setup
Lukas Metzger edited this page Apr 29, 2018
·
5 revisions
This API is only used for the initial setup. It is only available if no config file is present.
POST /setup
{
"db": {
"host": "localhost",
"user": "pdns",
"password": "pdns",
"database": "localhost",
"port": 3306
},
"admin": {
"name": "initaladmin",
"password": "foo"
}
}
code | result |
---|---|
204 | Everything was successful the answer is therefore empty |
400 | The supplied body was empty |
404 | If the application has already been setup |
422 | One of the required fields is missing |
500 | Error on setup, message in data! |
If an error occurred a message is returned.
{
"error": "Error message!"
}