The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k
stars
1.65k
forks
source link
default rest api reouter added. RestApiRouter sample has been added. #1680
How to use it: ... static const void route_registeration() { rest_api_router::register_route("/api/v1/api1/action1", &api1::Action1);
rest_api_router::register_route("/api/v1/api1/action2", &api1::Action2);
rest_api_router::register_route("/api/v1/api2/action1", &api2::Action1);
rest_api_router::register_route("/api/v1/api2/action2", &api2::Action2);
}
...
baseListener.support_rest_api_routing(route_registeration);
...
full code:
Release/samples/RestApiRouter