TL;TR: Is (first) question mark in URL part of query or is is just a separator followed by query?
The RFC 1738, section 3.3, suggests that the "?" (question mark) is not part of the query string, but just separates it from the path:
http://<host>:<port>/<path>?<searchpart>
Grammar presented in the RFC 3986, Appendix A., also indicate the "?" is not part of the actual query string:
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
Now, let's consider two URLs:
http://server.com/api/item.json
http://server.com/api/item.json?
Are they equivalent or distinct?
Is it valid to distinguish them and use to identify two different resources?