X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d77cf59c6dc0c70f8806d17e03576af272dc425d..c2d962b16eb0a68a880326abfbc04d07db230815:/services/api/app/controllers/application_controller.rb diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index 434b09572b..c6e7da0e11 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -328,13 +328,16 @@ class ApplicationController < ActionController::Base def render_list @object_list = { - :kind => "arvados##{resource_name}List", + :kind => "arvados##{(@response_resource_name || resource_name).camelize(:lower)}List", :etag => "", :self_link => "", :next_page_token => "", :next_link => "", :items => @objects.as_api_response(nil) } + if @objects.respond_to? :except + @object_list[:items_available] = @objects.except(:limit).count + end render json: @object_list end