Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-03-16 00:04:15 +00:00
parent c1be415ed0
commit 1b7ea6dff8
2 changed files with 110 additions and 101 deletions
@@ -197,17 +197,6 @@ public interface AdminApi {
Call<List<Organization>> adminGetAllOrgs(
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
/**
* List all users
*
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;List&lt;User&gt;&gt;
*/
@GET("admin/users")
Call<List<User>> adminGetAllUsers(
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
/**
* Get a hook
*
@@ -254,6 +243,22 @@ public interface AdminApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Search users according filter conditions
*
* @param sourceId ID of the user&#x27;s login source to search for (optional)
* @param loginName user&#x27;s login name to search for (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;List&lt;User&gt;&gt;
*/
@GET("admin/users")
Call<List<User>> adminSearchUsers(
@retrofit2.http.Query("source_id") Long sourceId,
@retrofit2.http.Query("login_name") String loginName,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* List unadopted repositories
*