rikitiki
v0.1.67
Build C++ web server modules that allow easy routing and deployment.
|
#include <restAdv.h>
Classes | |
struct | PrintFunctor |
Public Member Functions | |
void | POST (ConnContext &ctx) |
Post operations add items to the DB. | |
void | GET (ConnContext &ctx) |
Get operations without an ID return a list of all books. | |
void | GET (ConnContext &ctx, int id) |
void | DELETE (ConnContext &ctx) |
void | operator() (ConnContext &ctx, int id, const std::string &prop) |
void | Register (Server &server) |
Public Attributes | |
std::vector< Book > | books |
Example implementation of a REST module with object reflection Demonstrates