public interface RepositoryEndpoint
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
createDownload(java.lang.String username,
java.lang.String repository,
okhttp3.MultipartBody.Part file)
Asynchronously uploads a file into "Downloads" tab of the Bitbucket repo.
|
@Multipart
@POST(value="repositories/{username}/{repo_slug}/downloads")
java.util.concurrent.CompletableFuture<java.lang.Void> createDownload(@Path(value="username")
java.lang.String username,
@Path(value="repo_slug")
java.lang.String repository,
@Part
okhttp3.MultipartBody.Part file)
See API docs for more info.
username - the name of the repo owner (user or team)repository - the repository name (aka slug)file - the file as MultipartBody.Part