Hello, i found this C++ REST SDK and i think its a great add-on for the community.
This is my first post here and i hope to learn a lot here among great programmers!
i try to many things and despite reading the docs i can't find what i am looking for!
i have built a little HTTP server which i query with PHP.
i am using the latest Casablanca...
Here is my listener
which trigger the good method in my class
auto path = request.relative_uri().path();
int p = path.compare(U("/users/"));
printf("\n Request URI3: %s -- %d\n", path, p);
it always gives me "/" for the path ... anyways i try
i don't know how to retrieve the segments in the URI neither the params
i will have several urls to math against like:
List 10 USERS starting at index 0
Get invoices for a user ID 123
List 10 INVOICES starting at index 0
and of course i will do the same for GET-POST-PUT-DELETE
if possible i would like to get a hint so i will be able to understand :)
A big Thanks
Luc - GroupeVL