Skip to content
Snippets Groups Projects
Commit f7dd0674 authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

API: expose issues project id

parent 949b1df9
No related branches found
No related tags found
1 merge request!1142API changes
Loading
Loading
@@ -10,6 +10,7 @@ GET /issues
[
{
"id": 43,
"project_id": 8,
"title": "4xx/5xx pages",
"description": "",
"labels": [ ],
Loading
Loading
@@ -28,6 +29,7 @@ GET /issues
},
{
"id": 42,
"project_id": 8,
"title": "Add user settings",
"description": "",
"labels": [
Loading
Loading
@@ -91,6 +93,7 @@ Parameters:
```json
{
"id": 42,
"project_id": 8,
"title": "Add user settings",
"description": "",
"labels": [
Loading
Loading
Loading
Loading
@@ -31,7 +31,9 @@ module Gitlab
end
 
class Issue < Grape::Entity
expose :id, :title, :description
expose :id
expose (:project_id) {|issue| issue.project.id}
expose :title, :description
expose :label_list, :as => :labels
expose :milestone, :using => Entities::Milestone
expose :assignee, :author, :using => Entities::UserBasic
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment