Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The second step of the sync process is getting data from the server that has changed since the last time the server has successfully synced. Like the update process, each client table has a corresponding server endpoint from which to download data.

In addition to the last time the client successfully synced, the user’s id (Principal ID) is also sent to the server. This info is used by the endpoints related to forms. The endpoints return all the active form-related data, plus any non-active form-related data in inspections the user is related to.

For each table, the client sends only the primary key GUID values in the table to the server, plus the last time the client successfully synced with the server. The server sends back JSON data in the following categories

...