debian-mirror-gitlab/lib/api/entities/project_integration_basic.rb

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

29 lines
1.4 KiB
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
2021-09-30 23:02:18 +05:30
class ProjectIntegrationBasic < Grape::Entity
2023-01-13 00:05:48 +05:30
expose :id, documentation: { type: 'integer', example: 75 }
expose :title, documentation: { type: 'string', example: 'Jenkins CI' }
expose :slug, documentation: { type: 'integer', example: 'jenkins' } do |integration|
2021-09-30 23:02:18 +05:30
integration.to_param.dasherize
2020-03-13 15:44:24 +05:30
end
2023-01-13 00:05:48 +05:30
expose :created_at, documentation: { type: 'dateTime', example: '2019-11-20T11:20:25.297Z' }
expose :updated_at, documentation: { type: 'dateTime', example: '2019-11-20T12:24:37.498Z' }
expose :active, documentation: { type: 'boolean' }
expose :commit_events, documentation: { type: 'boolean' }
expose :push_events, documentation: { type: 'boolean' }
expose :issues_events, documentation: { type: 'boolean' }
expose :confidential_issues_events, documentation: { type: 'boolean' }
expose :merge_requests_events, documentation: { type: 'boolean' }
expose :tag_push_events, documentation: { type: 'boolean' }
expose :note_events, documentation: { type: 'boolean' }
expose :confidential_note_events, documentation: { type: 'boolean' }
expose :pipeline_events, documentation: { type: 'boolean' }
expose :wiki_page_events, documentation: { type: 'boolean' }
expose :job_events, documentation: { type: 'boolean' }
expose :comment_on_event_enabled, documentation: { type: 'boolean' }
2020-03-13 15:44:24 +05:30
end
end
end