I have resources like this
/entities # GET, POST /entities/<id>
GET / entities gets a list of all objects. Now I want to poll for updates. Case for one object directly:
GET /entities/2 If-Modified-Since: <http date>
The list is complicated. I want the answer to be a list of entities updated or created from a specific point in time. I would intuitively use
GET /entities Range: after <http date>
What is a valid HTTP specification request http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2 . But the spec also sets the response to 206 Partial Content , which should include the Content-Range header. The Content-Range header, in turn, sets the range of bytes that should be specified http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 . This is obviously very inconvenient for my use.
How do you request a semantic range over HTTP?
source share