First part of the setup process
[tolino-api-docs.git] / api / usecase-setup.rst
1 =============
2 Setup process
3 =============
4
5 Initial setup of a factory-reset e-reader.
6
7
8 Prelude
9 =======
10 1. Check if the internet is reachable: `GET http://clients3.google.com/generate_204`_
11 2. Check if the internet is really reachable: `GET http://mytolino.com/tolino-status.html?responseStatus=204`_
12 3. Check if the internet is really really reachable: `GET http://bosh.pageplace.de/bosh/rest/ping`_
13 4. Check if the internet is really really reachable a second time, just in case: `GET http://bosh.pageplace.de/bosh/rest/ping`_
14
15
16 Actual requests
17 ===============
18 1. Get list of allowed countries for the reader: `GET https://bosh.pageplace.de/bosh/rest/reseller/countries`_
19 2. Get list of selectable book shops: `GET https://bosh.pageplace.de/bosh/rest/reseller/selection`_
20 3. Notify tolino about the selected shop: `POST https://bosh.pageplace.de/bosh/rest/reseller/selection/report`_
21 4. Fetch the tolino configuration for the shop: `GET https://bosh.pageplace.de/bosh/rest/v2/resellerconfig`_
22 5. FIXME