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
8994a65d
Commit
8994a65d
authored
Jul 10, 2018
by
Greg Messner
Browse files
Corrected response code on put() calls from CREATED to OK.
parent
a5073f10
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/NotesApi.java
View file @
8994a65d
...
@@ -371,7 +371,7 @@ public class NotesApi extends AbstractApi {
...
@@ -371,7 +371,7 @@ public class NotesApi extends AbstractApi {
}
}
GitLabApiForm
formData
=
new
GitLabApiForm
().
withParam
(
"body"
,
body
,
true
);
GitLabApiForm
formData
=
new
GitLabApiForm
().
withParam
(
"body"
,
body
,
true
);
Response
response
=
put
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"merge_requests"
,
mergeRequestIid
,
"notes"
,
noteId
);
"projects"
,
projectId
,
"merge_requests"
,
mergeRequestIid
,
"notes"
,
noteId
);
return
(
response
.
readEntity
(
Note
.
class
));
return
(
response
.
readEntity
(
Note
.
class
));
}
}
...
...
src/main/java/org/gitlab4j/api/TagsApi.java
View file @
8994a65d
...
@@ -205,7 +205,7 @@ public class TagsApi extends AbstractApi {
...
@@ -205,7 +205,7 @@ public class TagsApi extends AbstractApi {
*/
*/
public
Release
updateRelease
(
Object
projectIdOrPath
,
String
tagName
,
String
releaseNotes
)
throws
GitLabApiException
{
public
Release
updateRelease
(
Object
projectIdOrPath
,
String
tagName
,
String
releaseNotes
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
().
withParam
(
"description"
,
releaseNotes
);
Form
formData
=
new
GitLabApiForm
().
withParam
(
"description"
,
releaseNotes
);
Response
response
=
put
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"repository"
,
"tags"
,
tagName
,
"release"
);
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"repository"
,
"tags"
,
tagName
,
"release"
);
return
(
response
.
readEntity
(
Release
.
class
));
return
(
response
.
readEntity
(
Release
.
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