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