With the RESTFUL API, the state of the application must be in the client. Here, the state of the application should indicate some time stamp or version number when you started looking at the data. On the server side, you will need some form of audit trail, which is the proper server data, since it does not depend on whether the clients were and what they did. At least he should know when the data was changed. There is no conflict with REST.
You can add a version parameter to your get. When a client first requires a page, it usually does not submit a version. Server responses contain one. For example, if there are links in the response to the following / other pages, these links contain & version = ... The client must send a version requesting another page.
When the server receives any request with the version, it should at least know if the data has changed since the client began to search, and depending on what type of checks you have, how they changed. If they did not, it responds normally, passing the same version number. If they are, he can at least tell the client. And depending on how much he knows how the data has changed, he may respond appropriately to the answer.
As an example, suppose you get a request with a start, shutdown, version, and you know that since the version was updated, the three lines that were before the start were deleted. You can send a redirect using start-3, end-3, new version.
source share