{std::string("/v1/" #api_name "/" #call_name), \
[&api_handle](string, string body, url_response_callback cb) mutable { \
try { \
INVOKE \
} catch (...) { \
http_plugin::handle_exception(#api_name, #call_name, body, cb); \
} \
}}
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
22#define CALL_WITH_400(api_name, api_handle, call_name, INVOKE, http_response_code) \
23{std::string("/v1/" #api_name "/" #call_name), \
24 [&api_handle](string, string body, url_response_callback cb) mutable { \
25 try { \
26 INVOKE \
27 cb(http_response_code, fc::variant(result)); \
28 } catch (...) { \
29 http_plugin::handle_exception(#api_name, #call_name, body, cb); \
30 } \
31 }}