arangosh> db._routing.save({
........> url: { match: "/hello/world" },
........> content: { contentType: "text/plain", body: "Match No 1"} });
{
"_id" : "_routing/101184",
"_key" : "101184",
"_rev" : "_YYClDoq--_"
}
arangosh> db._routing.save({
........> url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } },
........> content: { contentType: "text/plain", body: "Match No 2"} });
{
"_id" : "_routing/101188",
"_key" : "101188",
"_rev" : "_YYClDoq--B"
}
arangosh> db._routing.save({
........> url: { match: "/:something/world" },
........> content: { contentType: "text/plain", body: "Match No 3"} });
{
"_id" : "_routing/101191",
"_key" : "101191",
"_rev" : "_YYClDou--_"
}
arangosh> db._routing.save({
........> url: { match: "/hi/*" },
........> content: { contentType: "text/plain", body: "Match No 4"} });
{
"_id" : "_routing/101194",
"_key" : "101194",
"_rev" : "_YYClDou--B"
}
arangosh> require("internal").reloadRouting()