MXS-1220: Add creation of listeners via REST API

Listeners can now be created via the REST API by doing a POST request to
the service listener resource.
This commit is contained in:
Markus Mäkelä
2017-05-07 10:31:32 +03:00
parent 3e1ff70d7d
commit 461cd6afd9
5 changed files with 133 additions and 19 deletions

View File

@ -238,6 +238,16 @@ bool runtime_alter_monitor_from_json(MXS_MONITOR* monitor, json_t* new_json);
*/
bool runtime_alter_service_from_json(SERVICE* service, json_t* new_json);
/**
* @brief Create a listener from JSON
*
* @param service Service where the listener is created
* @param json JSON definition of the new listener
*
* @return True if the listener was successfully created and started
*/
bool runtime_create_listener_from_json(SERVICE* service, json_t* json);
/**
* @brief Alter logging options using JSON
*