arangosh> db._routing.save({
........> url: { match: "/hello/world" },
........> content: { contentType: "text/plain", body: "Match No 1"} });
{
"_id" : "_routing/7741",
"_key" : "7741",
"_rev" : "_WpTAoHy--_"
}
arangosh> db._routing.save({
........> url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } },
........> content: { contentType: "text/plain", body: "Match No 2"} });
{
"_id" : "_routing/7745",
"_key" : "7745",
"_rev" : "_WpTAoHy--B"
}
arangosh> db._routing.save({
........> url: { match: "/:something/world" },
........> content: { contentType: "text/plain", body: "Match No 3"} });
{
"_id" : "_routing/7748",
"_key" : "7748",
"_rev" : "_WpTAoHy--D"
}
arangosh> db._routing.save({
........> url: { match: "/hi/*" },
........> content: { contentType: "text/plain", body: "Match No 4"} });
{
"_id" : "_routing/7751",
"_key" : "7751",
"_rev" : "_WpTAoH2--_"
}
arangosh> require("internal").reloadRouting()