X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/adedc9a3791fbed1d08da4d8681f1d0e0b36e024..7caabd9c19c46ebc218d10b2c048e36d6e8cb2a4:/services/api/app/controllers/arvados/v1/schema_controller.rb diff --git a/services/api/app/controllers/arvados/v1/schema_controller.rb b/services/api/app/controllers/arvados/v1/schema_controller.rb index 90d3db685e..aee5d1f951 100644 --- a/services/api/app/controllers/arvados/v1/schema_controller.rb +++ b/services/api/app/controllers/arvados/v1/schema_controller.rb @@ -33,7 +33,10 @@ class Arvados::V1::SchemaController < ApplicationController id: "arvados:v1", name: "arvados", version: "v1", - revision: "20131114", + # format is YYYYMMDD, must be fixed with (needs to be linearly + # sortable), updated manually, may be used by clients to + # determine availability of API server features. + revision: "20190926", source_version: AppVersion.hash, sourceVersion: AppVersion.hash, # source_version should be deprecated in the future packageVersion: AppVersion.package_version, @@ -53,7 +56,7 @@ class Arvados::V1::SchemaController < ApplicationController blobSignatureTtl: Rails.configuration.Collections.BlobSigningTTL, maxRequestSize: Rails.configuration.API.MaxRequestSize, maxItemsPerResponse: Rails.configuration.API.MaxItemsPerResponse, - dockerImageFormats: Rails.configuration.Containers.SupportedDockerImageFormats, + dockerImageFormats: Rails.configuration.Containers.SupportedDockerImageFormats.keys, crunchLogBytesPerEvent: Rails.configuration.Containers.Logging.LogBytesPerEvent, crunchLogSecondsBetweenEvents: Rails.configuration.Containers.Logging.LogSecondsBetweenEvents, crunchLogThrottlePeriod: Rails.configuration.Containers.Logging.LogThrottlePeriod, @@ -401,8 +404,30 @@ class Arvados::V1::SchemaController < ApplicationController end end end + + discovery[:resources]['configs'] = { + methods: { + get: { + id: "arvados.configs.get", + path: "config", + httpMethod: "GET", + description: "Get public config", + parameters: { + }, + parameterOrder: [ + ], + response: { + }, + scopes: [ + "https://api.curoverse.com/auth/arvados", + "https://api.curoverse.com/auth/arvados.readonly" + ] + }, + } + } + Rails.configuration.API.DisabledAPIs.each do |method, _| - ctrl, action = method.split('.', 2) + ctrl, action = method.to_s.split('.', 2) discovery[:resources][ctrl][:methods].delete(action.to_sym) end discovery