From 1c5829a8e8838cb2997ee4bcf0566421d0f2e311 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 5 Jul 2014 12:03:12 +0200 Subject: [PATCH] updated comments --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 19dff6a..22e559a 100644 --- a/main.cpp +++ b/main.cpp @@ -25,6 +25,12 @@ int main() { //POST-example for the path /json, responds firstName+" "+lastName from the posted json //Responds with an appropriate error message if the posted json is not correct, or if firstName or lastName is missing + //Example posted json: + //{ + // "firstName": "John", + // "lastName": "Smith", + // "age": 25 + //} httpserver.resources["^/json/?$"]["^POST$"]=[](ostream& response, const Request& request, const smatch& path_match) { ptree pt; try {