diff options
author | Sean McGivern <sean@gitlab.com> | 2016-08-18 22:50:28 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-08-18 22:50:28 +0100 |
commit | aba9cc6f227a670390cbac0c5da97784afefc5ee (patch) | |
tree | 4eaafa3fb7fc948361a63b8b24170d69bddeeced /lib/api/entities.rb | |
parent | 883b96ab6a77175d9bac7f03c325428327359cdd (diff) | |
parent | 717366d28da11acc6dbe60301bf7e2394400b3c1 (diff) | |
download | gitlab-ce-aba9cc6f227a670390cbac0c5da97784afefc5ee.tar.gz |
Merge branch 'master' into expiration-date-on-memberships
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 64ee511bbd7..54ce2dcfa57 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -506,8 +506,28 @@ module API expose :key, :value end + class Pipeline < Grape::Entity + expose :id, :status, :ref, :sha, :before_sha, :tag, :yaml_errors + + expose :user, with: Entities::UserBasic + expose :created_at, :updated_at, :started_at, :finished_at, :committed_at + expose :duration + end + class Environment < Grape::Entity expose :id, :name, :external_url + expose :project, using: Entities::Project + end + + class EnvironmentBasic < Grape::Entity + expose :id, :name, :external_url + end + + class Deployment < Grape::Entity + expose :id, :iid, :ref, :sha, :created_at + expose :user, using: Entities::UserBasic + expose :environment, using: Entities::EnvironmentBasic + expose :deployable, using: Entities::Build end class RepoLicense < Grape::Entity |