0fe115513dd7414141ceefa59d10807f54e77cab
[tolino-api-docs.git] / api / pageplace.bosh-bosh-rest-upload.rst
1 ===================================================
2 ``POST https://bosh.pageplace.de/bosh/rest/upload``
3 ===================================================
4 Upload a new book ``.epub`` file.
5
6 Step 1 of the `upload process`_.
7
8
9 Request
10 =======
11 Header
12   FIXME: Headers
13
14   ``Content-Type``
15     ``multipart/form-data; boundary="Boundary1612163626238"``
16
17 Request body
18   Control data
19     Header
20       ``Content-Disposition: form-data; name="control"``
21     Content
22       JSON
23       ``{"filesize":334499,"transactionId":"84401550-d933-4f12-b168-87421835bada"}``
24   File data
25     Header
26       ``Content-Disposition: form-data; name="file"; filename="MacBest by Pratchett Terry.epub"``
27     Content
28       Binary .epub file contents
29
30
31 Response
32 ========
33 HTTP status code: ``200 OK``.
34
35 Meta data entry for the uploaded file.
36
37 Example:
38
39 .. include:: pageplace.bosh-bosh-rest-upload.response.json
40    :code: