-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Email sent to hapi-dev@groups.io
We are looking for feedback from HAPI data providers with servers where the dataset end date/time changes.
Eleco has an application where he wants to update a plot when new data becomes available (for INTERMAGNET now, but eventually for others). To do this, he needs to periodically request the info to get the current stop date and then make a data request if the stop date has changed.
Based on the discussion at #97, we propose to allow "stop=stopDate" in the request URL in HAPI 3.3. If a server supports this keyword, it would be indicated somehow in the /capabilities response. This would support his application, where a user hits reload to update the plot.
One issue this does not address is the case where the application wants to update the plot automatically. To do this, one would hit the server with stop=stopDate on a timer, which could lead to many useless requests. As a result, we propose that our documentation indicates that the server can set a HTTP header such as "expires" (but which header is debatable) that indicates to the client when it should make a new request.
If you have any feedback, please respond to this thread (ideally) or this email thread. You can also attend our weekly HAPI developers meeting for additional discussion.