Add custom endpoints for user repos, and username repos

This commit is contained in:
M M Arif
2025-06-17 18:53:24 +05:00
parent 268d5b9c96
commit 6622b84908
@@ -122,4 +122,17 @@ public interface CustomApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Body IssueMeta body);
@GET("users/{username}/repos")
Call<List<Repository>> customUserListRepos(
@retrofit2.http.Path("username") String username,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("order_by") String sort);
@GET("user/repos")
Call<List<Repository>> customUserCurrentListRepos(
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit,
@retrofit2.http.Query("order_by") String sort);
}