3 ms·
ElasticSearch [1] is one of the few APIs that does this. This is not a good idea [2], because you're sure to break caching and proxying, if it works at all. Ev
by niftich 10y ago
ElasticSearch [1] is one of the few APIs that does this. This is not a good idea [2], because you're sure to break caching and proxying, if it works at all.
Even ElasticSearch acknowledges this and allows you to POST the body instead. That's not very 'RESTful' either, but at least it's to spec. But since you haven't mentioned REST at all, POSTing to a controller resource to perform what would amount to be a retrieval is certainly a common practice in other HTTP APIs.
[1] https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html\ https://www.elastic.co/guide/en/elasticsearch/reference/curr...
[2] http://stackoverflow.com/questions/978061/http-get-with-request-body http://stackoverflow.com/questions/978061/http-get-with-requ...