mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -11,7 +11,7 @@ public interface CustomApi {
|
||||
Call<List<ContentsResponse>> repoGetContentsList(
|
||||
@Path("owner") String owner,
|
||||
@Path("repo") String repo,
|
||||
@Path("filepath") String filepath,
|
||||
@Path(value = "filepath", encoded = false) String filepath,
|
||||
@Query("ref") String ref);
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,6 @@ package org.gitnex.tea4j.v2.apis.custom;
|
||||
|
||||
import java.util.List;
|
||||
import org.gitnex.tea4j.v2.models.AccessToken;
|
||||
import org.gitnex.tea4j.v2.models.ContentsResponse;
|
||||
import org.gitnex.tea4j.v2.models.CreateAccessTokenOption;
|
||||
import org.gitnex.tea4j.v2.models.ServerVersion;
|
||||
import retrofit2.Call;
|
||||
@@ -32,11 +31,4 @@ public interface OTPApi {
|
||||
@Header("X-Gitea-OTP") int otp,
|
||||
@Path("username") String username,
|
||||
@Body CreateAccessTokenOption body);
|
||||
|
||||
@GET("repos/{owner}/{repo}/contents/{filepath}")
|
||||
Call<List<ContentsResponse>> repoGetContentsList(
|
||||
@Path("owner") String owner,
|
||||
@Path("repo") String repo,
|
||||
@Path("filepath") String filepath,
|
||||
@Query("ref") String ref);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user