summaryrefslogtreecommitdiff
path: root/lib/api/entities/deployment.rb
blob: 4e3a4c289d982aa51f2e4f0e7d36a9c55bae3664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module API
  module Entities
    class Deployment < Grape::Entity
      expose :id, :iid, :ref, :sha, :created_at, :updated_at
      expose :user,        using: Entities::UserBasic
      expose :environment, using: Entities::EnvironmentBasic
      expose :deployable,  using: Entities::Ci::Job
      expose :status
    end
  end
end