swh.web.api.views.raw module

swh.web.api.views.raw.api_raw_object(request: rest_framework.request.Request, swhid: str)[source]
GET /api/1/raw/(swhid)/

Get the object corresponding to the SWHID in raw form.

This endpoint exposes the internal representation (see the *_git_object functions in swh.model.git_objects), and so can be used to fetch a binary blob which hashes to the same identifier.

Warning

That endpoint is not publicly available and requires authentication and special user permission in order to be able to request it.

Parameters
  • swhid (string) – the object’s SWHID

Response Headers
Status Codes

Example:

https://archive.softwareheritage.org/api/1/raw/swh:1:snp:6a3a2cf0b2b90ce7ae1cf0a221ed68035b686f5a