3 ms·
Interesting that they use an sql-like query in the examples. I hope this does not mean that this will be taken as the default method of querying.. A JSON query
by jbverschoor 5y ago
Interesting that they use an sql-like query in the examples.
I hope this does not mean that this will be taken as the default method of querying.. A JSON query object could've been nice as an example.
How should you handle conflicting parameters (form-encoded + body)?
Also, on the HTML side.. If it's extended to <form method=QUERY>.. how will you be able to distinguish between the query part and the uri part?
How can/should you copy/share links? Will browsers simply base64 encode this somewhere?
- _bohm 5y agoFrom the paragraph above: > The non-normative examples in this section make use of a simple, hypothetical plain-text based query syntax based on SQL with results returned as comma-separated values. This is done for illustration purposes only. Implementations are free to use any format they wish
- anyfoo 5y agoI guess that they purposefully did not use JSON or any other widely used format to avoid giving the appearance that that format is required or encouraged. As for copying/sharing links, I think that was covered in another discussion above: Just like with POST, it's likely just not intended to do QUERY requests via links or through the URL bar.