summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-17 10:09:42 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-18 16:56:39 +0200
commitde7b8e51b8b7b5bfaa72ee62a4eb08497cf69b4b (patch)
tree06009695cc0888c2bf7e5cf112f241031fcd3206 /lib/api/entities.rb
parentac73de508e21af95b473bfafc2ca2543b234430d (diff)
downloadgitlab-ce-de7b8e51b8b7b5bfaa72ee62a4eb08497cf69b4b.tar.gz
Add endpoints for pipelines
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 055716ab1e3..09c9aca1e22 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -502,6 +502,14 @@ module API
expose :key, :value
end
+ class Pipeline < Grape::Entity
+ expose :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
end