debian-mirror-gitlab/lib/api/conan_project_packages.rb

17 lines
435 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
# Conan Project-Level Package Manager Client API
module API
2021-01-03 14:25:43 +05:30
class ConanProjectPackages < ::API::Base
2020-11-24 15:15:51 +05:30
params do
requires :id, type: Integer, desc: 'The ID of a project', regexp: %r{\A[1-9]\d*\z}
end
resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
namespace ':id/packages/conan/v1' do
include ConanPackageEndpoints
end
end
end
end