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