Add custom api to fix runner reponse model

This commit is contained in:
M M Arif
2025-07-20 19:19:56 +05:00
parent a5d000f0a9
commit 33b18b32ff
2 changed files with 20 additions and 0 deletions
@@ -135,4 +135,14 @@ public interface CustomApi {
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("order_by") String sort); @retrofit2.http.Query("order_by") String sort);
@GET("repos/{owner}/{repo}/actions/runners/{runner_id}")
Call<ActionRunner> customGetRepoRunner(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("runner_id") String runnerId);
@GET("repos/{owner}/{repo}/actions/runners")
Call<ActionRunnersResponse> customGetRepoRunners(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
} }
@@ -139,4 +139,14 @@ public interface CustomApi {
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("order_by") String sort); @retrofit2.http.Query("order_by") String sort);
@GET("repos/{owner}/{repo}/actions/runners/{runner_id}")
Call<ActionRunner> customGetRepoRunner(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("runner_id") String runnerId);
@GET("repos/{owner}/{repo}/actions/runners")
Call<ActionRunnersResponse> customGetRepoRunners(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
} }