Changeset View
Changeset View
Standalone View
Standalone View
docs/specs/protocol-reference.rst
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||||||||
the same origin URL. | the same origin URL. | ||||||||||
As a guideline, consider that every GitHub/GitLab project is an origin, | As a guideline, consider that every GitHub/GitLab project is an origin, | ||||||||||
and every package in Debian/NPM/PyPI is also an origin. | and every package in Debian/NPM/PyPI is also an origin. | ||||||||||
While origin URLs are not required to resolve to a source code artifact, | While origin URLs are not required to resolve to a source code artifact, | ||||||||||
we recommend they point to a public resource describing the software project, | we recommend they point to a public resource describing the software project, | ||||||||||
including a link to download its source code. | including a link to download its source code. | ||||||||||
This is not a technical requirement, but it improves discoverability. | This is not a technical requirement, but it improves discoverability. | ||||||||||
vlorentzUnsubmitted Done Inline Actions
vlorentz: | |||||||||||
.. _swh-deposit-provider-url-definition: | |||||||||||
Clients may not submit arbitrary URLs; the server will check the URLs they submit | Clients may not submit arbitrary URLs; the server will check the URLs they submit | ||||||||||
belongs to a "namespace" they own, known as the ``provider_url`` of the client. For | belongs to a "namespace" they own, known as the ``provider_url`` of the client. For | ||||||||||
example, if a client has their ``provider_url`` set to ``https://example.org/foo/`` they | example, if a client has their ``provider_url`` set to ``https://example.org/foo/`` they | ||||||||||
will only be able to submit deposits to origins whose URL starts with | will only be able to submit deposits to origins whose URL starts with | ||||||||||
``https://example.org/foo/``. | ``https://example.org/foo/``. | ||||||||||
Fallbacks | Fallbacks | ||||||||||
^^^^^^^^^ | ^^^^^^^^^ | ||||||||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |