Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8e864e0e
Commit
8e864e0e
authored
Jan 21, 2021
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add iteration web URL to API response
parent
92a06b97
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
3 deletions
+18
-3
doc/api/group_iterations.md
doc/api/group_iterations.md
+2
-1
doc/api/iterations.md
doc/api/iterations.md
+2
-1
ee/changelogs/unreleased/iteration-lists-frontend.yml
ee/changelogs/unreleased/iteration-lists-frontend.yml
+5
-0
ee/lib/api/entities/iteration.rb
ee/lib/api/entities/iteration.rb
+4
-0
ee/spec/fixtures/api/schemas/list.json
ee/spec/fixtures/api/schemas/list.json
+5
-1
No files found.
doc/api/group_iterations.md
View file @
8e864e0e
...
@@ -49,7 +49,8 @@ Example response:
...
@@ -49,7 +49,8 @@ Example response:
"created_at"
:
"2020-01-27T05:07:12.573Z"
,
"created_at"
:
"2020-01-27T05:07:12.573Z"
,
"updated_at"
:
"2020-01-27T05:07:12.573Z"
,
"updated_at"
:
"2020-01-27T05:07:12.573Z"
,
"due_date"
:
"2020-02-01"
,
"due_date"
:
"2020-02-01"
,
"start_date"
:
"2020-02-14"
"start_date"
:
"2020-02-14"
,
"web_url"
:
"http://gitlab.example.com/groups/my-group/-/iterations/13"
}
}
]
]
```
```
doc/api/iterations.md
View file @
8e864e0e
...
@@ -51,7 +51,8 @@ Example response:
...
@@ -51,7 +51,8 @@ Example response:
"created_at"
:
"2020-01-27T05:07:12.573Z"
,
"created_at"
:
"2020-01-27T05:07:12.573Z"
,
"updated_at"
:
"2020-01-27T05:07:12.573Z"
,
"updated_at"
:
"2020-01-27T05:07:12.573Z"
,
"due_date"
:
"2020-02-01"
,
"due_date"
:
"2020-02-01"
,
"start_date"
:
"2020-02-14"
"start_date"
:
"2020-02-14"
,
"web_url"
:
"http://gitlab.example.com/groups/my-group/-/iterations/13"
}
}
]
]
```
```
ee/changelogs/unreleased/iteration-lists-frontend.yml
0 → 100644
View file @
8e864e0e
---
title
:
Add web_url to iterations API
merge_request
:
52178
author
:
type
:
added
ee/lib/api/entities/iteration.rb
View file @
8e864e0e
...
@@ -10,6 +10,10 @@ module API
...
@@ -10,6 +10,10 @@ module API
expose
:state_enum
,
as: :state
expose
:state_enum
,
as: :state
expose
:created_at
,
:updated_at
expose
:created_at
,
:updated_at
expose
:start_date
,
:due_date
expose
:start_date
,
:due_date
expose
:web_url
do
|
iteration
,
_options
|
Gitlab
::
UrlBuilder
.
build
(
iteration
)
end
end
end
end
end
end
end
ee/spec/fixtures/api/schemas/list.json
View file @
8e864e0e
...
@@ -54,7 +54,8 @@
...
@@ -54,7 +54,8 @@
"id"
,
"id"
,
"title"
,
"title"
,
"description"
,
"description"
,
"state"
"state"
,
"web_url"
],
],
"properties"
:
{
"properties"
:
{
"id"
:
{
"id"
:
{
...
@@ -71,6 +72,9 @@
...
@@ -71,6 +72,9 @@
},
},
"state"
:
{
"state"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
"web_url"
:
{
"type"
:
"string"
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment