Commit 37817cc3 authored by Nihad Abbasov's avatar Nihad Abbasov

API: expose project id for milestones

parent 4e1f1e14
...@@ -36,7 +36,9 @@ module Gitlab ...@@ -36,7 +36,9 @@ module Gitlab
end end
class Milestone < Grape::Entity 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 end
class Issue < Grape::Entity class Issue < Grape::Entity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment