Commit 861b8c95 authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Update responses media type in specification to match reality

parent d251cf82
Pipeline #192994 waiting for manual action with stages
in 21 minutes and 19 seconds
......@@ -42,7 +42,7 @@ class ClustersController < ResourcesController
response 200 do
key :description, "Grid'5000 cluster's OAR resources status."
content :'application/json'
content api_media_type(:g5kitemjson)
end
end
end
......
......@@ -32,7 +32,7 @@ class DeploymentsController < ApplicationController
end
response 200 do
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :DeploymentCollection
end
......@@ -126,7 +126,7 @@ class DeploymentsController < ApplicationController
end
response 200 do
content :'application/json' do
content api_media_type(:g5kitemjson) do
schema do
key :'$ref', :Deployment
end
......
......@@ -33,7 +33,7 @@ class JobsController < ApplicationController
end
response 200 do
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :JobCollection
end
......@@ -137,7 +137,7 @@ class JobsController < ApplicationController
end
response 200 do
content :'application/json' do
content api_media_type(:g5kitemjson) do
schema do
key :'$ref', :Job
end
......
......@@ -41,7 +41,7 @@ class NodesController < ResourcesController
response 200 do
key :description, "Grid'5000 nodes collection."
content :'application/json'
content api_media_type(:g5kcollectionjson)
end
end
end
......@@ -74,7 +74,7 @@ class NodesController < ResourcesController
response 200 do
key :description, "The Grid'5000 node item."
content :'application/json'
content api_media_type(:g5kitemjson)
end
response 404 do
......
......@@ -35,7 +35,7 @@ class ResourcesController < ApplicationController
response 200 do
key :description, "Grid'5000 #{resources} collection."
content :'application/json'
content api_media_type(:g5kcollectionjson)
end
end
end
......@@ -58,7 +58,7 @@ class ResourcesController < ApplicationController
response 200 do
key :description, "The Grid'5000 #{resource} item."
content :'application/json'
content api_media_type(:g5kitemjson)
end
response 404 do
......
......@@ -31,7 +31,7 @@ class SitesController < ResourcesController
response 200 do
key :description, "Grid'5000 sites collection."
content :'application/json'
content api_media_type(:g5kcollectionjson)
end
end
end
......@@ -50,7 +50,7 @@ class SitesController < ResourcesController
response 200 do
key :description, "The Grid'5000 site item."
content :'application/json'
content api_media_type(:g5kitemjson)
end
response 404 do
......@@ -74,7 +74,7 @@ class SitesController < ResourcesController
response 200 do
key :description, "Grid'5000 site's OAR resources status."
content :'application/json'
content api_media_type(:g5kitemjson)
end
end
end
......
......@@ -32,7 +32,7 @@ class VersionsController < ApplicationController
response 200 do
key :description, "Grid'5000's reference-repository commit collection."
content :'application/json'
content api_media_type(:g5kcollectionjson)
end
end
end
......@@ -51,7 +51,7 @@ class VersionsController < ApplicationController
response 200 do
key :description, "Reference-repository's commit item."
content :'application/json'
content api_media_type(:g5kitemjson)
end
response 404 do
......@@ -76,7 +76,7 @@ class VersionsController < ApplicationController
response 200 do
key :description, "Grid'5000's reference-repository commit collection."
content :'application/json'
content api_media_type(:g5kcollectionjson)
end
end
end
......@@ -95,7 +95,7 @@ class VersionsController < ApplicationController
response 200 do
key :description, "Reference-repository's commit item."
content :'application/json'
content api_media_type(:g5kitemjson)
end
response 404 do
......
......@@ -27,7 +27,7 @@ class VlansController < ApplicationController
end
response 200 do
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :VlanCollection
end
......@@ -76,7 +76,7 @@ class VlansController < ApplicationController
end
response 200 do
content :'application/json' do
content api_media_type(:g5kitemjson) do
schema do
key :'$ref', :Vlan
end
......
......@@ -28,7 +28,7 @@ class VlansNodesAllController < ApplicationController
response 200 do
key :description, 'Collection of nodes.'
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :VlanAllNodeCollection
end
......@@ -63,7 +63,7 @@ class VlansNodesAllController < ApplicationController
response 200 do
key :description, 'Vlans added.'
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :VlanAllNodeCollection
end
......
......@@ -30,7 +30,7 @@ class VlansNodesController < ApplicationController
response 200 do
key :description, 'Collection of nodes.'
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :VlanNodeCollection
end
......
......@@ -30,7 +30,7 @@ class VlansUsersAllController < ApplicationController
response 200 do
key :description, 'Collection of users, with their vlans.'
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :VlanUserAllCollection
end
......@@ -72,7 +72,7 @@ class VlansUsersAllController < ApplicationController
response 200 do
key :description, 'List of vlan for user.'
content :'application/json' do
content api_media_type(:g5kitemjson) do
schema do
key :'$ref', :VlanUserAll
end
......
......@@ -30,7 +30,7 @@ class VlansUsersController < ApplicationController
response 200 do
key :description, 'Collection of users.'
content :'application/json' do
content api_media_type(:g5kcollectionjson) do
schema do
key :'$ref', :VlanUserCollection
end
......@@ -77,7 +77,7 @@ class VlansUsersController < ApplicationController
response 200 do
key :description, "Status of user for Vlan, can be authorized or unauthorized."
content :'application/json' do
content api_media_type(:g5kitemjson) do
schema do
key :'$ref', :VlanUser
end
......
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