Commit 25c450f9 authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Add authentification section to OpenAPI spec

parent 48816c68
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment