gitlab-org--gitlab-foss/app/serializers/issuable_entity.rb

21 lines
479 B
Ruby
Raw Normal View History

class IssuableEntity < Grape::Entity
expose :id
expose :iid
expose :author_id
expose :description
expose :lock_version
expose :milestone_id
expose :state
expose :title
expose :updated_by_id
expose :created_at
expose :updated_at
expose :deleted_at
expose :time_estimate
expose :total_time_spent
expose :human_time_estimate
expose :human_total_time_spent
2017-06-23 18:10:05 -04:00
expose :milestone, using: API::Entities::Milestone
expose :labels, using: LabelEntity
end