Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
g5k-api
Commits
c1927234
Commit
c1927234
authored
Aug 30, 2017
by
MARGERY David
Browse files
Document the semantics of the headers
parent
e0c83fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/grid5000/router.rb
View file @
c1927234
...
...
@@ -14,9 +14,14 @@
module
Grid5000
# Computes the URI to a specific path.
# Takes into account the X-Api-Path-Prefix (additional prefix to add to URI
# path), and X-Api-Mount-Path (subset of the API path to take out of the URI
# path).
# X-Api-root-Path is the entry point for all versions of the API
# X-Api-version is the version string by which the server is reached
# X-Api-Path-Prefix is the entry point to access this service for a
# given version. To use if a server does not wish to show the top level
# hieararchy exposed by the services, for example to only publish the
# resources of a single site (https://rennes.g5k/ ony giving access to
# resources under the /sites/rennes path
# X-Api-Mount-Path (subset of the API path to take out of the URI path).
class
Router
def
initialize
(
where
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment