MXS-1220: Add POST handling for servers

New servers can now be created by POSTing a new server definition to the
/servers/ resource.
This commit is contained in:
Markus Mäkelä
2017-04-19 16:39:08 +03:00
committed by Markus Mäkelä
parent 46344b204a
commit 80104d6dad
4 changed files with 193 additions and 3 deletions

View File

@ -179,4 +179,13 @@ bool runtime_create_monitor(const char *name, const char *module);
*/
bool runtime_destroy_monitor(MXS_MONITOR *monitor);
/**
* @brief Create a new server from JSON
*
* @param json JSON defining the server
*
* @return Created server or NULL on error
*/
SERVER* runtime_create_server_from_json(json_t* json);
MXS_END_DECLS