Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-07-17 08:13:24 +00:00
parent 459b4cba36
commit 65f700d036
@@ -1,7 +1,6 @@
package org.gitnex.tea4j.v2.apis.custom;
import java.util.List;
import okhttp3.ResponseBody;
import org.gitnex.tea4j.v2.models.*;
import retrofit2.Call;
import retrofit2.http.*;
@@ -98,21 +97,4 @@ public interface CustomApi {
@Headers({"Content-Type:application/json"})
@HTTP(method = "DELETE", path = "user/emails", hasBody = true)
Call<Void> userDeleteEmailWithBody(@Body DeleteEmailOption body);
/**
* Get a file from a repository
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param filepath filepath of the file to get (required)
* @param ref The name of the commit/branch/tag. Default the repositorys default branch (usually
* master) (optional)
* @return Call<ResponseBody>;
*/
@GET("repos/{owner}/{repo}/raw/{filepath}")
Call<ResponseBody> repoGetRawFile(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("filepath") String filepath,
@retrofit2.http.Query("ref") String ref);
}