3 ms·
(I feel like a broken record when this topic comes up, but...) RFC5323 is still a thing, and the HTTP verb mechanism is still extensible. Use the SEARCH verb,
by politician 12y ago
(I feel like a broken record when this topic comes up, but...)
RFC5323 is still a thing, and the HTTP verb mechanism is still extensible. Use the SEARCH verb, submit your complex query in the method body. It's up to you to define the query structure appropriate for your use case, but MongoDB's query language is a good starting place.
http://tools.ietf.org/search/rfc5323 http://tools.ietf.org/search/rfc5323
- dragonwriter 12y agoLike most things connected to WebDAV, RFC 5323's SEARCH method makes sense within WebDAV when used for the specific role it is intended for in WebDAV, but is specified with a whole bunch of requirements that aren't all that suitable for general use outside of WebDAV or its specific intended use within WebDAV -- e.g., the requirement of the server to accept XML requests and the specific definition of how it handles XML requests, and the requirement to use the 207 Multistatus response code on success. (Of course you dump all that, but then you aren't using RFC 5323, you are just inventing your own thing that shares the same name as the method defined there.) REPORT (also from WebDAV) is somewhat closer to a general GET-with-body, but still has some WebDAV baggage.