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
b89b7f02
Commit
b89b7f02
authored
Jul 07, 2018
by
Greg Messner
Browse files
Fixed repsonse codes (#218).
parent
53845f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/EpicsApi.java
View file @
b89b7f02
...
...
@@ -258,7 +258,7 @@ public class EpicsApi extends AbstractApi {
.
withParam
(
"description"
,
description
)
.
withParam
(
"start_date"
,
startDate
)
.
withParam
(
"end_date"
,
endDate
);
Response
response
=
put
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"epics"
,
epicIid
);
return
(
response
.
readEntity
(
Epic
.
class
));
}
...
...
@@ -288,7 +288,7 @@ public class EpicsApi extends AbstractApi {
.
withParam
(
"description"
,
epic
.
getDescription
())
.
withParam
(
"start_date"
,
epic
.
getStartDate
())
.
withParam
(
"end_date"
,
epic
.
getEndDate
());
Response
response
=
put
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"epics"
,
epicIid
);
return
(
response
.
readEntity
(
Epic
.
class
));
}
...
...
@@ -384,7 +384,7 @@ public class EpicsApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
*/
public
EpicIssue
removeIssue
(
Object
groupIdOrPath
,
Integer
epicIid
,
Integer
issueIid
)
throws
GitLabApiException
{
Response
response
=
delete
(
Response
.
Status
.
CREATED
,
null
,
Response
response
=
delete
(
Response
.
Status
.
OK
,
null
,
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"epics"
,
epicIid
,
"issues"
,
issueIid
);
return
(
response
.
readEntity
(
EpicIssue
.
class
));
}
...
...
@@ -406,7 +406,7 @@ public class EpicsApi extends AbstractApi {
GitLabApiForm
form
=
new
GitLabApiForm
()
.
withParam
(
"move_before_id"
,
moveBeforeId
)
.
withParam
(
"move_after_id"
,
moveAfterId
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
form
,
Response
response
=
post
(
Response
.
Status
.
OK
,
form
,
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"epics"
,
epicIid
,
"issues"
,
issueIid
);
return
(
response
.
readEntity
(
EpicIssue
.
class
));
}
...
...
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