API: expose project id for milestones
This commit is contained in:
parent
4e1f1e1422
commit
37817cc31d
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ module Gitlab
|
|||
end
|
||||
|
||||
class Milestone < Grape::Entity
|
||||
expose :id, :title, :description, :due_date, :closed, :updated_at, :created_at
|
||||
expose :id
|
||||
expose (:project_id) {|milestone| milestone.project.id}
|
||||
expose :title, :description, :due_date, :closed, :updated_at, :created_at
|
||||
end
|
||||
|
||||
class Issue < Grape::Entity
|
||||
|
|
Loading…
Reference in a new issue