https://github.com/a2p1k02/restapi
Simple rest-api lib
https://github.com/a2p1k02/restapi
boost cmake cpp json linux rest-api windows
Last synced: 2 months ago
JSON representation
Simple rest-api lib
- Host: GitHub
- URL: https://github.com/a2p1k02/restapi
- Owner: a2p1k02
- Created: 2024-01-12T08:47:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T08:10:01.000Z (about 2 years ago)
- Last Synced: 2025-01-14T23:36:29.005Z (over 1 year ago)
- Topics: boost, cmake, cpp, json, linux, rest-api, windows
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# restapi
### this is a simple rest-api lib for web development written with boost
## Examples
```cpp
#include "restapi/restapi.h"
int main()
{
routes_map routes;
routes.insert({ "/hello", {{"status", 200}, {"message", "hello world"}} });
routes.insert({ "/", {{"status", 200}, {"message", "you can route to /hello page"}} });
restapi::m_routes = routes;
restapi::start("127.0.0.1", 5734);
return 0;
}
```
## Logs example
