38360c6ab3678d96969f4a9a8cd089f49e1e2836
[tolino-api-docs.git] / api / usecase-sync.rst
1 ============
2 Sync process
3 ============
4 The user presses the synchronization button on the "My books" screen.
5
6 1. Check if the device is online: `GET http://bosh.pageplace.de/bosh/rest/ping`_
7 2. Fetch the reseller configuration: `GET https://bosh.pageplace.de/bosh/rest/v2/resellerconfig`_
8 3. Fetch the number of books/items in the cloud: `GET https://bosh.pageplace.de/bosh/rest/inventory/count`_
9 4. Fetch cloud book information: `GET https://inventory.pageplace.de/v2/inventory`_
10 5. FIXME: https://bosh.pageplace.de/bosh/rest/time
11 6. Fetch changes since last sync: PATCH https://bosh.pageplace.de/bosh/rest/sync-data
12 7. Get list of resellers: GET https://bosh.pageplace.de/bosh/rest/handshake/resellers
13 8. Fetch advertisements for the main screen: GET https://bosh.pageplace.de/bosh/rest/recommendation/xyz
14 9. Fetch family membership information: GET https://family.pageplace.de/v1/myself
15
16 When the user is part of a family:
17
18 10. Fetch list of available dictionaries: GET https://bosh.pageplace.de/bosh/rest/dictionary/list
19 11. Fetch list of family members: GET https://family.pageplace.de/v1/family
20 12. Fetch list of shared books: GET https://family.pageplace.de/v1/shares
21
22
23 FIXME: What happens if the inventory count is 0? Is the inventory not fetched then?