MXS-1220: Add endpoint for set/clear of server status

The server status can now be manipulated via the REST API. Added tests for
the state manipulation. Fixed minor issues in related code.
This commit is contained in:
Markus Mäkelä
2017-06-30 12:57:16 +03:00
parent c189378389
commit 63d2eee0e3
7 changed files with 172 additions and 25 deletions

View File

@ -86,8 +86,19 @@ json_t* mxs_json_self_link(const char* host, const char* path, const char* id);
*
* @param json JSON object
* @param json_ptr JSON Pointer to object
*
* @return Pointed value or NULL if no value is found
*/
json_t* mxs_json_pointer(json_t* json, const char* json_ptr);
/**
* @brief Return a JSON formatted error
*
* @param err Error description
*
* @return The error as JSON
*/
json_t* mxs_json_error(const char* err);
MXS_END_DECLS