diff options
Diffstat (limited to 'lib/api/container_repositories.rb')
-rw-r--r-- | lib/api/container_repositories.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/api/container_repositories.rb b/lib/api/container_repositories.rb index 9cd3e449687..17d667fb6df 100644 --- a/lib/api/container_repositories.rb +++ b/lib/api/container_repositories.rb @@ -23,11 +23,17 @@ module API params do optional :tags, type: Boolean, default: false, desc: 'Determines if tags should be included' optional :tags_count, type: Boolean, default: false, desc: 'Determines if the tags count should be included' + optional :size, type: Boolean, default: false, desc: 'Determines if the size should be included' end get ':id' do authorize!(:read_container_image, repository) - present repository, with: Entities::ContainerRegistry::Repository, tags: params[:tags], tags_count: params[:tags_count], user: current_user + present repository, + with: Entities::ContainerRegistry::Repository, + tags: params[:tags], + tags_count: params[:tags_count], + size: params[:size], + user: current_user end end end |