mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Add custom endpoints for user repos, and username repos
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user