Work in progress #5: Uploading and deleting own ebooks
[tolino-api-docs.git] / api / usecase-upload.rst
1 ==============
2 Upload process
3 ==============
4 The user wants to upload a book on the reader to the cloud.
5
6 1. Upload the epub file: `POST https://bosh.pageplace.de/bosh/rest/upload`_
7 2. Upload the cover image: `POST https://bosh.pageplace.de/bosh/rest/cover`_
8 3. Fetch the number of books in the cloud: `GET https://bosh.pageplace.de/bosh/rest/inventory/count`_
9 4. Fetch the current date/time: `GET https://bosh.pageplace.de/bosh/rest/time`_
10 5. Fetch changes since last sync: `PATCH https://bosh.pageplace.de/bosh/rest/sync-data`_
11
12 Some time later:
13
14 6. Download the cover of the uploaded book: `GET https://bosh.pageplace.de/bosh/rest/cover/xxx/yyy`_