Merge pull request 'Add custom endpoints for user repos, and username repos' (#29) from add-endpoint into main

Reviewed-on: https://codeberg.org/gitnex/tea4j-autodeploy/pulls/29
This commit is contained in:
M M Arif
2025-06-17 15:56:04 +02:00
@@ -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);
}