Cloud download + book deletion
[tolino-api-docs.git] / api / pageplace.bosh-bosh-rest-cloud-downloadinfo.rst
1 ==============================================================
2 ``GET https://bosh.pageplace.de/bosh/rest/cloud/downloadinfo``
3 ==============================================================
4 Get information where to download a book from the cloud.
5
6 This is fetched when the reader shows a book available in the cloud
7 but has not been downloaded onto the reader.
8 Requesting the download first fetches this URL, then
9 the ``contentUrl`` is downloaded via
10 `GET https://bosh.pageplace.de/bosh/rest/content/xxx/yyy`_.
11
12 Step 1 of the download process.
13
14
15 Request
16 =======
17
18 Header
19   See `bosh v1 header set`_
20
21 Path parts
22   Example of a full path:
23   ``https://bosh.pageplace.de/bosh/rest/cloud/downloadinfo/Ym9zaF8zXzM5NTQ5MDEzNTEzMTE3NTc3NDgwODE5ODk2NQ/Ym9zaF8zXzM5NTQ5MDEzNTEzMTE3NTc3NDgwODE5ODk2NQ/type/ANDROID_GK_6``
24
25   FIXME: What are those parts? How to calculate them?
26
27
28 Response
29 ========
30 HTTP status code: ``200 OK``
31
32 Download info with file size, URL and MIME type.
33
34 Example:
35
36 .. include:: pageplace.bosh-bosh-rest-cloud-downloadinfo.response.json
37    :code: