debian-mirror-gitlab/lib/api/conan_project_packages.rb
2023-07-09 08:55:56 +05:30

22 lines
537 B
Ruby

# frozen_string_literal: true
# Conan Project-Level Package Manager Client API
module API
class ConanProjectPackages < ::API::Base
helpers do
def search_project
project
end
end
params do
requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the project'
end
resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
namespace ':id/packages/conan/v1' do
include ::API::Concerns::Packages::ConanEndpoints
end
end
end
end