Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-web
Commits
51dabba3
Commit
51dabba3
authored
4 years ago
by
Stefano Zacchiroli
Browse files
Options
Downloads
Patches
Plain Diff
doc: reference SWHID using explicit anchors
parent
533628aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/uri-scheme-identifiers.rst
+7
-6
7 additions, 6 deletions
docs/uri-scheme-identifiers.rst
swh/web/browse/identifiers.py
+1
-1
1 addition, 1 deletion
swh/web/browse/identifiers.py
with
8 additions
and
7 deletions
docs/uri-scheme-identifiers.rst
+
7
−
6
View file @
51dabba3
URI scheme for Software Heritage identifiers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
A subset of Software Heritage objects (contents, directories, releases and revisions)
can be browsed using :ref:`persistent-identifiers`. Those identifiers
are guaranteed to remain stable (persistent) over time.
A subset of Software Heritage objects (contents, directories, releases and
revisions) can be browsed using :ref:`SWHIDs <persistent-identifiers>`. Those
identifiers are guaranteed to remain stable (persistent) over time.
.. http:get:: /(swh_id)/
...
...
@@ -11,9 +12,9 @@ are guaranteed to remain stable (persistent) over time.
A redirection to the adequate HTML view will be performed when
reaching it.
:param string swh_id: a persistent identifier for a Software Heritage
object
(see th
e :ref:`persistent
-
identifiers
` section to learn more
about its syntax)
:param string swh_id: a persistent identifier for a Software Heritage
object, or SWHID (se
e :ref:`persistent
identifiers
<persistent-identifiers>` to learn more
about its syntax)
:resheader Location: the redirection URL for browsing the Software Heritage object
associated to the provided identifier
:statuscode 302: no error
...
...
This diff is collapsed.
Click to expand it.
swh/web/browse/identifiers.py
+
1
−
1
View file @
51dabba3
...
...
@@ -12,7 +12,7 @@ from swh.web.common.exc import handle_view_exception
def
swh_id_browse
(
request
,
swh_id
):
"""
Django view enabling to browse the archive using
:ref:`persistent-identifiers`.
:ref:`
SWHIDs <
persistent-identifiers
>
`.
The url that points to it is :http:get:`/(swh_id)/`.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment