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
820ab246
Commit
820ab246
authored
Jul 05, 2017
by
Greg Messner
Browse files
Cleaned up Javadocs and renamed getIssues() to getNotes().
parent
b2a4fc3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/NotesApi.java
View file @
820ab246
...
@@ -14,13 +14,13 @@ public class NotesApi extends AbstractApi {
...
@@ -14,13 +14,13 @@ public class NotesApi extends AbstractApi {
}
}
/**
/**
* Get a list of issues's notes. Only returns the first page
* Get a list of
the
issues's notes. Only returns the first page
*
*
* GET /projects/:id/issues/:issue_iid/notes
* GET /projects/:id/issues/:issue_iid/notes
*
*
* @param projectId the project ID to get the issues for
* @param projectId the project ID to get the issues for
* @param issueIid the issue ID to get the notes for
* @param issueIid the issue ID to get the notes for
* @return a list of issues's notes
* @return a list of
the
issues's notes
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
List
<
Note
>
getNotes
(
Integer
projectId
,
Integer
issueIid
)
throws
GitLabApiException
{
public
List
<
Note
>
getNotes
(
Integer
projectId
,
Integer
issueIid
)
throws
GitLabApiException
{
...
@@ -29,7 +29,7 @@ public class NotesApi extends AbstractApi {
...
@@ -29,7 +29,7 @@ public class NotesApi extends AbstractApi {
}
}
/**
/**
* Get a list of
project's issu
es using the specified page and per page settings.
* Get a list of
the issue's not
es using the specified page and per page settings.
*
*
* GET /projects/:id/issues/:issue_iid/notes
* GET /projects/:id/issues/:issue_iid/notes
*
*
...
@@ -40,7 +40,7 @@ public class NotesApi extends AbstractApi {
...
@@ -40,7 +40,7 @@ public class NotesApi extends AbstractApi {
* @return the list of notes in the specified range
* @return the list of notes in the specified range
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
List
<
Note
>
get
Issu
es
(
Integer
projectId
,
Integer
issueIid
,
int
page
,
int
perPage
)
throws
GitLabApiException
{
public
List
<
Note
>
get
Not
es
(
Integer
projectId
,
Integer
issueIid
,
int
page
,
int
perPage
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
getPageQueryParams
(
page
,
perPage
),
"projects"
,
projectId
,
"issues"
,
issueIid
,
"notes"
);
Response
response
=
get
(
Response
.
Status
.
OK
,
getPageQueryParams
(
page
,
perPage
),
"projects"
,
projectId
,
"issues"
,
issueIid
,
"notes"
);
return
(
response
.
readEntity
(
new
GenericType
<
List
<
Note
>>()
{}));
return
(
response
.
readEntity
(
new
GenericType
<
List
<
Note
>>()
{}));
}
}
...
@@ -53,7 +53,7 @@ public class NotesApi extends AbstractApi {
...
@@ -53,7 +53,7 @@ public class NotesApi extends AbstractApi {
* @param projectId the project ID to get the issues for
* @param projectId the project ID to get the issues for
* @param issueIid the issue IID to get the notes for
* @param issueIid the issue IID to get the notes for
* @param itemsPerPage the number of notes per page
* @param itemsPerPage the number of notes per page
* @return the list of
issu
es in the specified range
* @return the list of
not
es in the specified range
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
Pager
<
Note
>
getNotes
(
Integer
projectId
,
Integer
issueIid
,
int
itemsPerPage
)
throws
GitLabApiException
{
public
Pager
<
Note
>
getNotes
(
Integer
projectId
,
Integer
issueIid
,
int
itemsPerPage
)
throws
GitLabApiException
{
...
...
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