X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7f3ed5e22e01b9cc8efe9ebfc79a2591b37b14d7..20abd5d545f9f1102bcd28ee4cab7a2453e28cb4:/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 f856dd6406..c108fb898d 100644 --- a/services/api/app/controllers/arvados/v1/schema_controller.rb +++ b/services/api/app/controllers/arvados/v1/schema_controller.rb @@ -1,6 +1,11 @@ class Arvados::V1::SchemaController < ApplicationController + skip_before_filter :catch_redirect_hint skip_before_filter :find_objects_for_index skip_before_filter :find_object_by_uuid + skip_before_filter :load_filters_param + skip_before_filter :load_limit_offset_order_params + skip_before_filter :load_read_auths + skip_before_filter :load_where_param skip_before_filter :render_404_if_no_object skip_before_filter :require_auth_scope @@ -20,12 +25,14 @@ class Arvados::V1::SchemaController < ApplicationController title: "Arvados API", description: "The API to interact with Arvados.", documentationLink: "http://doc.arvados.org/api/index.html", + defaultCollectionReplication: Rails.configuration.default_collection_replication, protocol: "rest", baseUrl: root_url + "arvados/v1/", basePath: "/arvados/v1/", rootUrl: root_url, servicePath: "arvados/v1/", batchPath: "batch", + defaultTrashLifetime: Rails.application.config.default_trash_lifetime, parameters: { alt: { type: "string", @@ -257,13 +264,7 @@ class Arvados::V1::SchemaController < ApplicationController path: "#{k.to_s.underscore.pluralize}", httpMethod: "POST", description: "Create a new #{k.to_s}.", - parameters: { - ensure_unique_name: { - type: "boolean", - description: "Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.", - location: "query" - } - }, + parameters: {}, request: { required: true, properties: { @@ -396,6 +397,6 @@ class Arvados::V1::SchemaController < ApplicationController end discovery end - render json: discovery + send_json discovery end end