When I look at your sample.rest you repeat http://localhost:9200 many times. I'm lazy. What I would like to be able to do is to write the host just one time and then have multiple rest requests with the same host and headers:
# Submitting a form.
http://localhost:9200
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
GET /_cat/nodes?v
POST /testindex/testtype
{
"name": "some name",
"value": "some value",
"date": "2015-01-01"
}
GET /testindex/_search?pretty
#end of the block
When I trigger on the POST or its body it'll execute the POST request with the host and header defined above.
When I look at your sample.rest you repeat http://localhost:9200 many times. I'm lazy. What I would like to be able to do is to write the host just one time and then have multiple rest requests with the same host and headers:
When I trigger on the POST or its body it'll execute the POST request with the host and header defined above.
What do you think?