X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7e3496abb1b8c70607df37b6f096c8acd42d714d..38e27663cf656f0c9c443a2715f249afe39a8bfb:/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..bc5a20fb0d 100644 --- a/services/api/app/controllers/arvados/v1/schema_controller.rb +++ b/services/api/app/controllers/arvados/v1/schema_controller.rb @@ -26,6 +26,7 @@ class Arvados::V1::SchemaController < ApplicationController rootUrl: root_url, servicePath: "arvados/v1/", batchPath: "batch", + defaultTrashLifetime: Rails.application.config.default_trash_lifetime, parameters: { alt: { type: "string", @@ -257,13 +258,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 +391,6 @@ class Arvados::V1::SchemaController < ApplicationController end discovery end - render json: discovery + send_json discovery end end