Register the URL path and the handler routine with the mcorest core library.
MCO_RET mcorest_api_register_service(mcorest_h rest,
const char *path,
mcorest_api_handler_fn h,
void *ctx,
int allow_partial_match);
rest
path
h
mcorest_api_handler_fn.ctx
allow_partial_match
Registers the REST service at the specified path. The registration order matters: the paths should be registered from the most to the least specific. For example: "/base/child" should come before "/base".
MCO_S_OK = 0
MCO_E_REST_INUSE
MCO_E_REST_*