简体   繁体   中英

How to read or detect new data in REST Webservice

I've created a REST-webservice with cakePHP for my mobile app. And the idea is to allow customers to load new data in to the system. Now the mobile app will have to check if there is new data available in the system. It can do this by asking the webservice which returns json. Now my question is how can i store the customers data so when i query the webservice it shows which data is new so i can use the new data and leave the old ones?

When querying you will need a way to track which data is already loaded. Depending on the type of data, sending or tracking the last update may suffice (to filter by a creation date), as may a "sent" flag per client on the server side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM