debian-mirror-gitlab/lib/api/entities/nuget/dependency.rb

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

15 lines
533 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module API
module Entities
module Nuget
class Dependency < Grape::Entity
2023-03-04 22:38:38 +05:30
expose :id, as: :@id, documentation: { type: 'string', example: 'http://gitlab.com/Sandbox.App/1.0.0.json#dependency' }
expose :type, as: :@type, documentation: { type: 'string', example: 'PackageDependency' }
expose :name, as: :id, documentation: { type: 'string', example: 'Dependency' }
expose :range, documentation: { type: 'string', example: '2.0.0' }
2020-07-28 23:09:34 +05:30
end
end
end
end