Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
web_interface:sync_api [2022/02/14 14:49] – [Available calls (v5)] Gary Willetts | web_interface:sync_api [2025/01/21 23:18] (current) – [Basics] Mark Glover | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
- | ====== 19.10. mSupply sync API ====== | + | ====== 19.11. mSupply sync API ====== |
===== What is it? ===== | ===== What is it? ===== | ||
There are multiple ways to configure an mSupply installation. Where the internet is good, or you are using a local area network, you can have real-time communication with an mSupply server. Where internet access is poor or non-existent, | There are multiple ways to configure an mSupply installation. Where the internet is good, or you are using a local area network, you can have real-time communication with an mSupply server. Where internet access is poor or non-existent, | ||
- | The machine on which the data is stored, which we call a // | + | The machine on which the data is stored, which we call a // |
===== Basics ===== | ===== Basics ===== | ||
You might want to read about our [[web_interface: | You might want to read about our [[web_interface: | ||
- | - The SYNC API is a subset of the mSupply REST API. | + | - The SYNC API is a subset of the [[web_interface: |
- All calls to the sync API use a pseudo-resource of " | - All calls to the sync API use a pseudo-resource of " | ||
- The second URI segment is the API version. Allowable values: | - The second URI segment is the API version. Allowable values: | ||
Line 232: | Line 232: | ||
=== central_records === | === central_records === | ||
< | < | ||
- | Requests sync records | + | Requests sync change log records for the sync site matching the authentication sent in the header. |
== Attributes == | == Attributes == | ||
* **cursor**: the record number to return from. e.g. '' | * **cursor**: the record number to return from. e.g. '' | ||
- | * **limit**: the maximum number of records that can be returned. If ommitted, the //limit// is set to 1000. If a //limit// value above 1000 is used, the //limit// is set to 1000. | + | * **limit**: the maximum number of records that can be returned. If omitted, the //limit// is set to 1000. If a //limit// value above 1000 is used, the //limit// is set to 1000. |
=== queue === | === queue === | ||
Line 248: | Line 248: | ||
\\ | \\ | ||
\\ | \\ | ||
- | | // Previous: | + | | // Previous: |
---- struct data ---- | ---- struct data ---- | ||
pagestatus.status | pagestatus.status | ||
---- | ---- | ||