diff options
Diffstat (limited to 'lib/api/entities/deployment.rb')
-rw-r--r-- | lib/api/entities/deployment.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/api/entities/deployment.rb b/lib/api/entities/deployment.rb new file mode 100644 index 00000000000..3a97d3e3c09 --- /dev/null +++ b/lib/api/entities/deployment.rb @@ -0,0 +1,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::Job + expose :status + end + end +end |