Changeset View
Changeset View
Standalone View
Standalone View
docs/endpoints/collection.rst
Show All 17 Lines | .. http:post:: /1/(str:collection-name)/ | ||||
**Example query**: | **Example query**: | ||||
.. code:: shell | .. code:: shell | ||||
curl -i -u hal:<pass> \ | curl -i -u hal:<pass> \ | ||||
-F "file=@deposit.json;type=application/zip;filename=payload" \ | -F "file=@deposit.json;type=application/zip;filename=payload" \ | ||||
-F "atom=@atom-entry.xml;type=application/atom+xml;charset=UTF-8" \ | -F "atom=@atom-entry.xml;type=application/atom+xml;charset=UTF-8" \ | ||||
-H 'In-Progress: false' \ | -H 'In-Progress: false' \ | ||||
-H 'Slug: some-external-id' \ | |||||
-XPOST https://deposit.softwareheritage.org/1/hal/ | -XPOST https://deposit.softwareheritage.org/1/hal/ | ||||
.. code:: http | .. code:: http | ||||
POST /1/hal/ HTTP/1.1 | POST /1/hal/ HTTP/1.1 | ||||
Host: deposit.softwareheritage.org | Host: deposit.softwareheritage.org | ||||
Authorization: Basic xxxxxxxxxxxx= | Authorization: Basic xxxxxxxxxxxx= | ||||
Slug: some-external-id | |||||
In-Progress: false | In-Progress: false | ||||
Content-Length: 123456 | Content-Length: 123456 | ||||
Content-Type: multipart/form-data; boundary=----------------------123456798 | Content-Type: multipart/form-data; boundary=----------------------123456798 | ||||
**Example response**: | **Example response**: | ||||
.. code:: http | .. code:: http | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |