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:
committed by
Markus Mäkelä
parent
46344b204a
commit
80104d6dad
@ -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
|
||||
|
||||
@ -128,7 +128,7 @@ public:
|
||||
*
|
||||
* @return Raw JSON body or NULL if no body is defined
|
||||
*/
|
||||
const json_t* get_json() const
|
||||
json_t* get_json()
|
||||
{
|
||||
return m_json.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user