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