I want to create a rewrite handler that does a bulk insert e.g:
"from": "/createSomeStuff",
"to": "../../_bulk_docs",
"method": "POST"
this works fine ... but id also like the build the request body in the rewrite rules. Much akin to the way the query is built in this example I found on URL rewriting:
"rewrites": [
{
"from": "/blog",
"to": "_list/posts/all",
"query": {
"descending":true,
"limit": 5
}
}
],
is there any way to do somthing like this:
"from": "/createSomeStuff",
"to": "../../_bulk_docs",
"method": "POST",
"request" : {
"body":{{"foo": true},{"bar" : false}}
}