From de7b8e51b8b7b5bfaa72ee62a4eb08497cf69b4b Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Wed, 17 Aug 2016 10:09:42 +0200 Subject: Add endpoints for pipelines --- lib/api/entities.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/api/entities.rb') 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 -- cgit v1.2.1