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
08fa8df0
Commit
08fa8df0
authored
Mar 14, 2020
by
Greg Messner
Browse files
Fixed some Javadocs
parent
ee2e0a05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
08fa8df0
...
@@ -2568,7 +2568,7 @@ public class ProjectApi extends AbstractApi implements Constants {
...
@@ -2568,7 +2568,7 @@ public class ProjectApi extends AbstractApi implements Constants {
/**
/**
* Uploads and sets the project avatar for the specified project.
* Uploads and sets the project avatar for the specified project.
*
*
* <pre><code>GitLab Endpoint: PUT /projects/:id
/uploads
</code></pre>
* <pre><code>GitLab Endpoint: PUT /projects/:id</code></pre>
*
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
* @param avatarFile the File instance of the avatar file to upload
* @param avatarFile the File instance of the avatar file to upload
...
@@ -2576,7 +2576,8 @@ public class ProjectApi extends AbstractApi implements Constants {
...
@@ -2576,7 +2576,8 @@ public class ProjectApi extends AbstractApi implements Constants {
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
Project
setProjectAvatar
(
Object
projectIdOrPath
,
File
avatarFile
)
throws
GitLabApiException
{
public
Project
setProjectAvatar
(
Object
projectIdOrPath
,
File
avatarFile
)
throws
GitLabApiException
{
Response
response
=
putUpload
(
Response
.
Status
.
OK
,
"avatar"
,
avatarFile
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
));
Response
response
=
putUpload
(
Response
.
Status
.
OK
,
"avatar"
,
avatarFile
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
));
return
(
response
.
readEntity
(
Project
.
class
));
return
(
response
.
readEntity
(
Project
.
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