Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
3404b187
Commit
3404b187
authored
Jul 08, 2019
by
Greg Messner
Browse files
Asdded GitLab endpoint info to Javadocs.
parent
83a05ad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/MilestonesApi.java
View file @
3404b187
...
@@ -14,6 +14,8 @@ import org.gitlab4j.api.models.Milestone;
...
@@ -14,6 +14,8 @@ import org.gitlab4j.api.models.Milestone;
/**
/**
* This class implements the client side API for the GitLab milestones calls.
* This class implements the client side API for the GitLab milestones calls.
* @see <a href="https://docs.gitlab.com/ce/api/milestones.html">Project milestones API</a>
* @see <a href="https://docs.gitlab.com/ce/api/group_milestones.html">Group milestones API</a>
*/
*/
public
class
MilestonesApi
extends
AbstractApi
{
public
class
MilestonesApi
extends
AbstractApi
{
...
@@ -24,6 +26,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -24,6 +26,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of group milestones.
* Get a list of group milestones.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @return the milestones associated with the specified group
* @return the milestones associated with the specified group
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
...
@@ -35,6 +39,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -35,6 +39,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of group milestones.
* Get a list of group milestones.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param page the page number to get
* @param page the page number to get
* @param perPage how many milestones per page
* @param perPage how many milestones per page
...
@@ -50,6 +56,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -50,6 +56,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a Page of group milestones.
* Get a Page of group milestones.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @return the milestones associated with the specified group
* @return the milestones associated with the specified group
...
@@ -63,6 +71,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -63,6 +71,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a Stream of group milestones.
* Get a Stream of group milestones.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @return a Stream of the milestones associated with the specified group
* @return a Stream of the milestones associated with the specified group
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
...
@@ -74,6 +84,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -74,6 +84,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of group milestones that have the specified state.
* Get a list of group milestones that have the specified state.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param state the milestone state
* @param state the milestone state
* @return the milestones associated with the specified group and state
* @return the milestones associated with the specified group and state
...
@@ -89,6 +101,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -89,6 +101,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of group milestones that have match the search string.
* Get a list of group milestones that have match the search string.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param search the search string
* @param search the search string
* @return the milestones associated with the specified group
* @return the milestones associated with the specified group
...
@@ -104,6 +118,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -104,6 +118,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of group milestones that have the specified state and match the search string.
* Get a list of group milestones that have the specified state and match the search string.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones/:milestone_id</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param state the milestone state
* @param state the milestone state
* @param search the search string
* @param search the search string
...
@@ -123,6 +139,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -123,6 +139,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get the specified group milestone.
* Get the specified group milestone.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones/:milestone_id</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the ID of the milestone tp get
* @param milestoneId the ID of the milestone tp get
* @return a Milestone instance for the specified IDs
* @return a Milestone instance for the specified IDs
...
@@ -137,20 +155,52 @@ public class MilestonesApi extends AbstractApi {
...
@@ -137,20 +155,52 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get the list of issues associated with the specified group milestone.
* Get the list of issues associated with the specified group milestone.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the issues for
* @param milestoneId the milestone ID to get the issues for
* @return a List of Issue for the milestone
* @return a List of Issue for the milestone
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
List
<
Issue
>
getGroupIssues
(
Object
groupIdOrPath
,
Integer
milestoneId
)
throws
GitLabApiException
{
public
List
<
Issue
>
getGroupIssues
(
Object
groupIdOrPath
,
Integer
milestoneId
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
getDefaultPerPageParam
(),
return
(
getGroupIssues
(
groupIdOrPath
,
milestoneId
,
getDefaultPerPage
()).
all
());
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"milestones"
,
milestoneId
,
"issues"
);
}
return
(
response
.
readEntity
(
new
GenericType
<
List
<
Issue
>>()
{}));
/**
* Get the Pager of issues associated with the specified group milestone.
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the issues for
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @return a Pager of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
public
Pager
<
Issue
>
getGroupIssues
(
Object
groupIdOrPath
,
Integer
milestoneId
,
int
itemsPerPage
)
throws
GitLabApiException
{
return
(
new
Pager
<
Issue
>(
this
,
Issue
.
class
,
itemsPerPage
,
null
,
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"milestones"
,
milestoneId
,
"issues"
));
}
/**
* Get a Stream of issues associated with the specified group milestone.
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the issues for
* @return a Stream of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
public
Stream
<
Issue
>
getGroupIssuesStream
(
Object
groupIdOrPath
,
Integer
milestoneId
)
throws
GitLabApiException
{
return
(
getGroupIssues
(
groupIdOrPath
,
milestoneId
,
getDefaultPerPage
()).
stream
());
}
}
/**
/**
* Get the list of merge requests associated with the specified group milestone.
* Get the list of merge requests associated with the specified group milestone.
*
*
* <pre><code>GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/merge_requests</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the merge requests for
* @param milestoneId the milestone ID to get the merge requests for
* @return a list of merge requests associated with the specified milestone
* @return a list of merge requests associated with the specified milestone
...
@@ -165,6 +215,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -165,6 +215,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Create a group milestone.
* Create a group milestone.
*
*
* <pre><code>GitLab Endpoint: POST /groups/:id/milestones</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param title the title for the milestone
* @param title the title for the milestone
* @param description the description for the milestone
* @param description the description for the milestone
...
@@ -179,14 +231,15 @@ public class MilestonesApi extends AbstractApi {
...
@@ -179,14 +231,15 @@ public class MilestonesApi extends AbstractApi {
.
withParam
(
"description"
,
description
)
.
withParam
(
"description"
,
description
)
.
withParam
(
"due_date"
,
dueDate
)
.
withParam
(
"due_date"
,
dueDate
)
.
withParam
(
"start_date"
,
startDate
);
.
withParam
(
"start_date"
,
startDate
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"milestones"
);
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"milestones"
);
return
(
response
.
readEntity
(
Milestone
.
class
));
return
(
response
.
readEntity
(
Milestone
.
class
));
}
}
/**
/**
* Close a group milestone.
* Close a group milestone.
*
*
* <pre><code>GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to close
* @param milestoneId the milestone ID to close
* @return the closed Milestone instance
* @return the closed Milestone instance
...
@@ -207,6 +260,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -207,6 +260,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Activate a group milestone.
* Activate a group milestone.
*
*
* <pre><code>GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to activate
* @param milestoneId the milestone ID to activate
* @return the activated Milestone instance
* @return the activated Milestone instance
...
@@ -227,6 +282,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -227,6 +282,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Update the specified group milestone.
* Update the specified group milestone.
*
*
* <pre><code>GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id</code></pre>
*
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
* @param milestoneId the milestone ID to update
* @param milestoneId the milestone ID to update
* @param title the updated title for the milestone
* @param title the updated title for the milestone
...
@@ -258,6 +315,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -258,6 +315,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of project milestones.
* Get a list of project milestones.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @return the milestones associated with the specified project
* @return the milestones associated with the specified project
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
...
@@ -269,6 +328,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -269,6 +328,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of project milestones.
* Get a list of project milestones.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param page the page number to get
* @param page the page number to get
* @param perPage how many milestones per page
* @param perPage how many milestones per page
...
@@ -282,7 +343,9 @@ public class MilestonesApi extends AbstractApi {
...
@@ -282,7 +343,9 @@ public class MilestonesApi extends AbstractApi {
}
}
/**
/**
* Get a Page of project milestones.
* Get a Pager of project milestones.
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @param itemsPerPage The number of Milestone instances that will be fetched per page
...
@@ -297,6 +360,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -297,6 +360,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a Stream of project milestones.
* Get a Stream of project milestones.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @return a Stream of the milestones associated with the specified project
* @return a Stream of the milestones associated with the specified project
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
...
@@ -308,6 +373,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -308,6 +373,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of project milestones that have the specified state.
* Get a list of project milestones that have the specified state.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param state the milestone state
* @param state the milestone state
* @return the milestones associated with the specified project and state
* @return the milestones associated with the specified project and state
...
@@ -323,6 +390,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -323,6 +390,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of project milestones that have match the search string.
* Get a list of project milestones that have match the search string.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param search the search string
* @param search the search string
* @return the milestones associated with the specified project
* @return the milestones associated with the specified project
...
@@ -338,6 +407,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -338,6 +407,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get a list of project milestones that have the specified state and match the search string.
* Get a list of project milestones that have the specified state and match the search string.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param state the milestone state
* @param state the milestone state
* @param search the search string
* @param search the search string
...
@@ -357,6 +428,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -357,6 +428,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get the specified milestone.
* Get the specified milestone.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones/:milestone_id</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the ID of the milestone tp get
* @param milestoneId the ID of the milestone tp get
* @return a Milestone instance for the specified IDs
* @return a Milestone instance for the specified IDs
...
@@ -371,19 +444,51 @@ public class MilestonesApi extends AbstractApi {
...
@@ -371,19 +444,51 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Get the list of issues associated with the specified milestone.
* Get the list of issues associated with the specified milestone.
*
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the issues for
* @param milestoneId the milestone ID to get the issues for
* @return a List of Issue for the milestone
* @return a List of Issue for the milestone
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
List
<
Issue
>
getIssues
(
Object
projectIdOrPath
,
Integer
milestoneId
)
throws
GitLabApiException
{
public
List
<
Issue
>
getIssues
(
Object
projectIdOrPath
,
Integer
milestoneId
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
getDefaultPerPageParam
(),
return
(
getIssues
(
projectIdOrPath
,
milestoneId
,
getDefaultPerPage
()).
all
());
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"milestones"
,
milestoneId
,
"issues"
);
}
return
(
response
.
readEntity
(
new
GenericType
<
List
<
Issue
>>()
{}));
/**
* Get a Pager of issues associated with the specified milestone.
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the issues for
* @param itemsPerPage the number of Milestone instances that will be fetched per page
* @return a Pager of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
public
Pager
<
Issue
>
getIssues
(
Object
projectIdOrPath
,
Integer
milestoneId
,
int
itemsPerPage
)
throws
GitLabApiException
{
return
(
new
Pager
<
Issue
>(
this
,
Issue
.
class
,
itemsPerPage
,
null
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"milestones"
,
milestoneId
,
"issues"
));
}
/**
* Get a Stream of issues associated with the specified milestone.
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the issues for
* @return a Stream of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
public
Stream
<
Issue
>
getIssuesStream
(
Object
projectIdOrPath
,
Integer
milestoneId
)
throws
GitLabApiException
{
return
(
getIssues
(
projectIdOrPath
,
milestoneId
,
getDefaultPerPage
()).
stream
());
}
}
/**
/**
* Get the list of merge requests associated with the specified milestone.
* Get the list of merge requests associated with the specified milestone.
*
* <pre><code>GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/merge_requests</code></pre>
*
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the merge requests for
* @param milestoneId the milestone ID to get the merge requests for
...
@@ -399,6 +504,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -399,6 +504,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Create a milestone.
* Create a milestone.
*
*
* <pre><code>GitLab Endpoint: POST /projects/:id/milestones</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param title the title for the milestone
* @param title the title for the milestone
* @param description the description for the milestone
* @param description the description for the milestone
...
@@ -421,6 +528,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -421,6 +528,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Close a milestone.
* Close a milestone.
*
*
* <pre><code>GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to close
* @param milestoneId the milestone ID to close
* @return the closed Milestone instance
* @return the closed Milestone instance
...
@@ -441,6 +550,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -441,6 +550,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Activate a milestone.
* Activate a milestone.
*
*
* <pre><code>GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to activate
* @param milestoneId the milestone ID to activate
* @return the activated Milestone instance
* @return the activated Milestone instance
...
@@ -461,6 +572,8 @@ public class MilestonesApi extends AbstractApi {
...
@@ -461,6 +572,8 @@ public class MilestonesApi extends AbstractApi {
/**
/**
* Update the specified milestone.
* Update the specified milestone.
*
*
* <pre><code>GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to update
* @param milestoneId the milestone ID to update
* @param title the updated title for the milestone
* @param title the updated title for the milestone
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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