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
1255c23a
Commit
1255c23a
authored
Jul 17, 2015
by
Greg Messner
Browse files
Merge pull request #11 from lonfee88/master
addMember should return 201 CREATED rather than 200 OK
parents
be334cb3
c2f3c1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/ProjectApi.java
View file @
1255c23a
...
@@ -304,7 +304,7 @@ public class ProjectApi extends AbstractApi {
...
@@ -304,7 +304,7 @@ public class ProjectApi extends AbstractApi {
Form
formData
=
new
Form
();
Form
formData
=
new
Form
();
formData
.
param
(
"user_id"
,
userId
.
toString
());
formData
.
param
(
"user_id"
,
userId
.
toString
());
formData
.
param
(
"access_level"
,
accessLevel
.
toString
());
formData
.
param
(
"access_level"
,
accessLevel
.
toString
());
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
projectId
,
"members"
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
projectId
,
"members"
);
return
(
response
.
readEntity
(
Member
.
class
));
return
(
response
.
readEntity
(
Member
.
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