Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
g5k-api
Commits
25c450f9
Commit
25c450f9
authored
Nov 26, 2020
by
Samir Noir
🧀
Browse files
Add authentification section to OpenAPI spec
parent
48816c68
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/apidocs_controller.rb
View file @
25c450f9
...
...
@@ -16,6 +16,10 @@ class ApidocsController < ActionController::Base
key
:url
,
'https://api.grid5000.fr/'
end
security
do
key
:BasicAuth
,
[]
end
tag
do
key
:name
,
'reference-api'
key
:description
,
"Reference-api expose Grid'5000's reference-repository, "
\
...
...
@@ -245,6 +249,11 @@ class ApidocsController < ActionController::Base
key
:example
,
'application/vnd.grid5000.item+json'
end
end
security_scheme
:BasicAuth
do
key
:type
,
:http
key
:scheme
,
:basic
end
end
# A list of all classes that have swagger_* declarations.
...
...
Write
Preview
Markdown
is supported
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