X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/19d0b4c509ec720f9ffc1ea13f758c5825308834..df8de1bd9a517a1a3bfac0f8ab9ace41524d4b39:/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 7df2edb49f..f02a56bc62 100644 --- a/services/api/app/controllers/arvados/v1/schema_controller.rb +++ b/services/api/app/controllers/arvados/v1/schema_controller.rb @@ -222,9 +222,22 @@ class Arvados::V1::SchemaController < ApplicationController minimum: 0, location: "query", }, + offset: { + type: "integer", + description: "Number of #{k.to_s.underscore.pluralize} to skip before first returned record.", + default: 0, + format: "int32", + minimum: 0, + location: "query", + }, + filters: { + type: "array", + description: "Conditions for filtering #{k.to_s.underscore.pluralize}.", + location: "query" + }, where: { type: "object", - description: "Conditions for filtering #{k.to_s.underscore.pluralize}.", + description: "Conditions for filtering #{k.to_s.underscore.pluralize}. (Deprecated. Use filters instead.)", location: "query" }, order: { @@ -323,7 +336,8 @@ class Arvados::V1::SchemaController < ApplicationController if httpMethod and route.defaults[:controller] == 'arvados/v1/' + k.to_s.underscore.pluralize and !d_methods[action.to_sym] and - ctl_class.action_methods.include? action + ctl_class.action_methods.include? action and + ![:show, :index, :destroy].include?(action.to_sym) method = { id: "arvados.#{k.to_s.underscore.pluralize}.#{action}", path: route.path.spec.to_s.sub('/arvados/v1/','').sub('(.:format)','').sub(/:(uu)?id/,'{uuid}'),