A simple example of creating a RESTful webservice using pistache (a modern c++ REST framework).
- C++
- cmake
- Pistache
- nlohmann/json
- Compile the whole implementation of respective headers (.cpp files) by the following command: g++ -std=c++11 -c ./*/*.cpp
- Compile the main.cpp file along with the binary files (the output of all compiled implementation headers) by using the following command: g++ -std=c++11 ./main.cpp ./*.o -o ./main
- Run the project: ./main then try to access localhost:9000/customers with method: GET.