diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-16 08:45:23 +0200 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-18 21:10:52 +0200 |
commit | 47d6f286eb565ae582def5a28af2cb450b2ee479 (patch) | |
tree | bff99a661fb7420ac4cc51fb2ee2c38361cf7fe3 /lib/api/entities.rb | |
parent | fffe5c2b577b39be2254525d4320cf396b7ff58b (diff) | |
download | gitlab-ce-47d6f286eb565ae582def5a28af2cb450b2ee479.tar.gz |
Add deployment endpoints
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b575af53850..9ae68947379 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -514,6 +514,18 @@ module API expose :id, :name, :external_url end + class EnvironmentBasic < Grape::Entity + expose :id, :name, :external_url + end + + class Deployment < Grape::Entity + expose :id, :iid, :ref, :sha, :created_at + expose :project, using: Entities::Project + expose :user, using: Entities::UserBasic + expose :environment, using: Entities::EnvironmentBasic + expose :deployable, using: Entities::Build + end + class RepoLicense < Grape::Entity expose :key, :name, :nickname expose :featured, as: :popular |