Family sharing API doc
[tolino-api-docs.git] / api / pageplace.bosh-bosh-rest-cover.rst
1 ==================================================
2 ``POST https://bosh.pageplace.de/bosh/rest/cover``
3 ==================================================
4 Upload the cover for an uploaded ``.epub`` file.
5
6 Step 2 of the `upload process`_.
7
8 Request
9 =======
10 Header
11   ``Content-Type``
12     ``multipart/form-data; boundary="Boundary1612163626238"``
13
14 Request body
15   Control data
16     Header
17       ``Content-Disposition: form-data; name="control"``
18     Content
19       JSON
20       ``{"filesize":334499,"transactionId":"84401550-d933-4f12-b168-87421835bada"}``
21
22       The transaction ID is different than the one for the epub upload.
23   File data
24     Header
25       ``Content-Disposition: form-data; name="file"; filename="1092560016"``
26     Content
27       Binary cover image contents
28   Book reference
29     Header
30       ``Content-Disposition: form-data; name="deliverableId"``
31     Content
32       ``deliverableId`` of the epub upload response.
33
34       Example: ``bosh_3_395490135492823841139311838``
35
36
37
38 Response
39 ========
40 HTTP status code: ``200 OK``.
41
42 Meta data entry for the uploaded cover.
43
44 Example:
45
46 .. include:: pageplace.bosh-bosh-rest-cover.response.json
47    :code: