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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre-Yves David
swh-web
Commits
6cf0da56
Commit
6cf0da56
authored
9 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
Draft on uri's scheme for the web-ui
parent
d1500420
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README-uri-scheme.md
+64
-0
64 additions, 0 deletions
README-uri-scheme.md
with
64 additions
and
0 deletions
README-uri-scheme.md
0 → 100644
+
64
−
0
View file @
6cf0da56
URI scheme
==========
Browsing namespace
------------------
### Global
To be anchored where browsing starts (e.g., at /browse)
*
/revision/
<SHA1_GIT>
: show commit information
*
/directory/
<SHA1_GIT>
: show directory information (including ls)
*
/directory/
<SHA1_GIT>
/path/to/file-or-dir: ditto, but for dir pointed by path
-
note: this is the same as /dir/
<SHA1_GIT
'
>
, where
<SHA1_GIT
'
>
is the
sha1_git ID of the dir pointed by path
*
/content/[
<HASH_ALGO>
:]
<HASH>
: show content information
-
content is specified by HASH, according to HASH_ALGO, where HASH_ALGO is
one of: sha1, sha1_git, sha256. This means that several different URLs (at
least one per HASH_ALGO) will point to the same content
-
HASH_ALGO defaults to "sha1" (?)
*
/release/
<SHA1_GIT>
: show release information
*
/person/
<PERSON_ID>
: show person information
*
/origin/
<ORIGIN_ID>
: show origin information
*
/project/
<PROJECT_ID>
: show project information
*
/organization/
<ORGANIZATION_ID>
: show organization information
### Occurrence
Origin/Branch do not contain
`|`
so it is used as a terminator.
Origin is
<TYPE
+
URL
>
.
Timestamp is one of: latest or an ISO8601 date (TODO: decide the time matching
policy).
*
/directory/
<TIMESTAMP>
/
<ORIGIN>
|/
<BRANCH>
|/path/to/file-or-dir
-
Same as /directory/
<SHA1_GIT>
but looking up sha1 git using origin and
branch at a given timestamp
*
/revision/
<TIMESTAMP>
/
<ORIGIN>
|/
<BRANCH>
-
Same as /revision/
<SHA1_GIT>
but looking up sha1 git using origin and
branch at a given timestamp
*
/revision/
<TIMESTAMP>
/
<ORIGIN>
|
-
Show all branches of origin at a given timestamp
*
/revision/
<TIMESTAMP>
/
<ORIGIN>
|/
<BRANCH>
|
-
Show all revisions (~git log) of origin and branch at a given timestamp
Search namespace
----------------
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