Service document ^^^^^^^^^^^^^^^^^ .. http:get:: /1/servicedocument/ This is the starting endpoint for the client to discover its initial collection. The answer to this query will describes: * the server's abilities * connected client's collection information Also known as: SD-IRI - The Service Document IRI **Example query**: .. code:: http GET /1/servicedocument/ HTTP/1.1 Host: deposit.softwareheritage.org Authorization: Basic xxxxxxxxxxxx= **Example response**: .. code:: http HTTP/1.1 200 OK Allow: GET, POST, PUT, DELETE, HEAD, OPTIONS Connection: keep-alive Content-Length: 1247 Content-Type: application/xml Date: Thu, 05 Nov 2020 14:27:05 GMT Server: nginx/1.19.2 Vary: Accept X-Frame-Options: SAMEORIGIN 2.0 20971520 The Software Heritage (SWH) archive SWH Software Archive application/zip application/x-tar Collection Policy Software Heritage Archive false false Collect, Preserve, Share http://purl.org/net/sword/package/SimpleZip https://deposit.softwareheritage.org/1/hal/ :reqheader Authorization: Basic authentication token :statuscode 200: no error :statuscode 401: Unauthorized