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

API: expose project id for milestones

parent 4e1f1e14
......@@ -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
......
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