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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
537 B
Ruby
Raw Permalink 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
2023-07-09 08:55:56 +05:30
helpers do
def search_project
project
end
end
2020-11-24 15:15:51 +05:30
params do
2023-03-04 22:38:38 +05:30
requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the project'
2020-11-24 15:15:51 +05:30
end
resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
namespace ':id/packages/conan/v1' do
2021-02-22 17:27:13 +05:30
include ::API::Concerns::Packages::ConanEndpoints
2020-11-24 15:15:51 +05:30
end
end
end
end