Files
scylladb/http
Amnon Heiman f2147e7490 Http adding the json path
Json path are used when parsing the swagger files. Each path represent
an operation in the swagger files.

They are used to simplified setting a handler or a function to a path.

For example: the code generation would define a json_path like:

path_description hello_world("/hello/world",GET,"hello_world", {},{});

Now to define the handler that would use hello_world, you can simply do:

hello_world.set(r,
            [](const_req req) {
               return "hello world";
});

When r is a reference to a route object.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-03-30 15:38:41 +03:00
..
2015-03-08 21:55:57 +02:00
2015-03-30 15:38:41 +03:00
2015-03-30 15:38:41 +03:00
2015-03-30 15:38:41 +03:00
2015-03-30 15:38:41 +03:00
2015-03-30 15:38:41 +03:00
2015-03-08 21:55:57 +02:00
2015-03-08 21:55:57 +02:00
2015-03-08 21:55:57 +02:00
2015-03-08 21:55:57 +02:00
2015-03-30 15:38:41 +03:00
2015-03-30 15:38:41 +03:00