Miscellaneous URLs
^^^^^^^^^^^^^^^^^^
Iframe view for contents and directories
----------------------------------------
A subset of Software Heritage objects (contents and directories) can be embedded
in external websites through the use of iframes. A dedicated endpoint serving
a minimalist Web UI is available for that use case.
.. http:get:: /embed/(swhid)/
Endpoint to embed Software Heritage objects in external websites using
an iframe.
:param string swhid: a SoftWare Heritage persistent IDentifier
object, or SWHID (see :ref:`swhids` to learn more about its syntax)
:statuscode 200: no error
:statuscode 400: the provided identifier is malformed or
the object type is not supported by the view
:statuscode 404: requested object cannot be found in the archive
**Example:**
By adding HTML code similar to the one below in a web page,
.. code-block:: html
you will obtain the following rendering.
.. raw:: html