diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 5e844c0..3d94378 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -9266,7 +9266,7 @@ Name | Type | Description | Notes # **repoGetRawFile** -> Void repoGetRawFile(owner, repo, filepath, ref) +> File repoGetRawFile(owner, repo, filepath, ref) Get a file from a repository @@ -9327,7 +9327,7 @@ String repo = "repo_example"; // String | name of the repo String filepath = "filepath_example"; // String | filepath of the file to get String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master) try { - Void result = apiInstance.repoGetRawFile(owner, repo, filepath, ref); + File result = apiInstance.repoGetRawFile(owner, repo, filepath, ref); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RepositoryApi#repoGetRawFile"); @@ -9346,7 +9346,7 @@ Name | Type | Description | Notes ### Return type -[**Void**](.md) +[**File**](File.md) ### Authorization @@ -9355,11 +9355,11 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream # **repoGetRawFileOrLFS** -> Void repoGetRawFileOrLFS(owner, repo, filepath, ref) +> File repoGetRawFileOrLFS(owner, repo, filepath, ref) Get a file or it's LFS object from a repository @@ -9420,7 +9420,7 @@ String repo = "repo_example"; // String | name of the repo String filepath = "filepath_example"; // String | filepath of the file to get String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master) try { - Void result = apiInstance.repoGetRawFileOrLFS(owner, repo, filepath, ref); + File result = apiInstance.repoGetRawFileOrLFS(owner, repo, filepath, ref); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RepositoryApi#repoGetRawFileOrLFS"); @@ -9439,7 +9439,7 @@ Name | Type | Description | Notes ### Return type -[**Void**](.md) +[**File**](File.md) ### Authorization @@ -9448,7 +9448,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream # **repoGetRelease** diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java index ba1a397..548cf5d 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java @@ -1,5 +1,6 @@ package org.gitnex.tea4j.v2.apis; +import java.io.File; import java.util.Date; import java.util.List; import java.util.Map; @@ -1618,10 +1619,10 @@ public interface RepositoryApi { * @param filepath filepath of the file to get (required) * @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually * master) (optional) - * @return Call<Void> + * @return Call<File> */ @GET("repos/{owner}/{repo}/raw/{filepath}") - Call repoGetRawFile( + Call repoGetRawFile( @retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo, @retrofit2.http.Path("filepath") String filepath, @@ -1635,10 +1636,10 @@ public interface RepositoryApi { * @param filepath filepath of the file to get (required) * @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually * master) (optional) - * @return Call<Void> + * @return Call<File> */ @GET("repos/{owner}/{repo}/media/{filepath}") - Call repoGetRawFileOrLFS( + Call repoGetRawFileOrLFS( @retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo, @retrofit2.http.Path("filepath") String filepath,