summaryrefslogtreecommitdiff
path: root/lib/api/conan_project_packages.rb
blob: c51992231a7ebbf4c1c6fae99b51843d040927af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

# Conan Project-Level Package Manager Client API
module API
  class ConanProjectPackages < Grape::API::Instance
    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