X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..ee38970362aa72e8aeb875ce15028fffd7834a3b:/services/api/app/controllers/arvados/v1/container_requests_controller.rb diff --git a/services/api/app/controllers/arvados/v1/container_requests_controller.rb b/services/api/app/controllers/arvados/v1/container_requests_controller.rb index c5da06e367..3d5d4616ef 100644 --- a/services/api/app/controllers/arvados/v1/container_requests_controller.rb +++ b/services/api/app/controllers/arvados/v1/container_requests_controller.rb @@ -9,4 +9,23 @@ class Arvados::V1::ContainerRequestsController < ApplicationController accept_attribute_as_json :command, Array accept_attribute_as_json :filters, Array accept_attribute_as_json :scheduling_parameters, Hash + accept_attribute_as_json :secret_mounts, Hash + + def self._index_requires_parameters + (super rescue {}). + merge({ + include_trash: { + type: 'boolean', required: false, description: "Include container requests whose owner project is trashed." + }, + }) + end + + def self._show_requires_parameters + (super rescue {}). + merge({ + include_trash: { + type: 'boolean', required: false, description: "Show container request even if its owner project is trashed." + }, + }) + end end