removed token from arg list
This commit is contained in:
parent
4510b887cc
commit
6dcad78524
@ -22,7 +22,7 @@ public interface UserService {
|
|||||||
Call<List<User>> getAllUsers(@Header("Authorization") JwtToken token);
|
Call<List<User>> getAllUsers(@Header("Authorization") JwtToken token);
|
||||||
|
|
||||||
@POST("api/users")
|
@POST("api/users")
|
||||||
Call<ResponseBody> createUser(@Body User user,@Header("Authorization") JwtToken token);
|
Call<ResponseBody> createUser(@Body User user);
|
||||||
|
|
||||||
@GET("api/users/page/{pageNum}")
|
@GET("api/users/page/{pageNum}")
|
||||||
Call<PagedResult> getPagedUsers(@Path("pageNum") String pageNum, @Header("Authorization") JwtToken token);
|
Call<PagedResult> getPagedUsers(@Path("pageNum") String pageNum, @Header("Authorization") JwtToken token);
|
||||||
@ -37,41 +37,41 @@ public interface UserService {
|
|||||||
Call<User> getUserByID(@Path("id") String userID, @Header("Authorization") JwtToken token);
|
Call<User> getUserByID(@Path("id") String userID, @Header("Authorization") JwtToken token);
|
||||||
|
|
||||||
@PUT("api/users/{id}")
|
@PUT("api/users/{id}")
|
||||||
Call<User> updateUserByID(@Path("id") String userID, @Body User user,@Header("Authorization") JwtToken token);
|
Call<User> updateUserByID(@Path("id") String userID, @Body User user);
|
||||||
|
|
||||||
@DELETE("api/users/{id}")
|
@DELETE("api/users/{id}")
|
||||||
Call<User> deleteUserByID(@Path("id") String userID, @Header("Authorization") JwtToken token);
|
Call<User> deleteUserByID(@Path("id") String userID, @Header("Authorization") JwtToken token);
|
||||||
|
|
||||||
@GET("api/users/userLogin/{ldapLogin}")
|
@GET("api/users/userLogin/{ldapLogin}")
|
||||||
Call<String> getUserLdapLogin(@Path("ldapLogin") String ldapLogin,@Header("Authorization") JwtToken token);
|
Call<String> getUserLdapLogin(@Path("ldapLogin") String ldapLogin);
|
||||||
|
|
||||||
@PUT("api/users/setActive/{userID}")
|
@PUT("api/users/setActive/{userID}")
|
||||||
Call<User> setUserActive(@Path("userID") String userID,@Header("Authorization") JwtToken token);
|
Call<User> setUserActive(@Path("userID") String userID);
|
||||||
|
|
||||||
@PUT("api/users/setInActive/{userID}")
|
@PUT("api/users/setInActive/{userID}")
|
||||||
Call<User> setUserInActive(@Path("userID") String userID,@Header("Authorization") JwtToken token);
|
Call<User> setUserInActive(@Path("userID") String userID);
|
||||||
|
|
||||||
@GET("api/users/blacklist/{tutorID}")
|
@GET("api/users/blacklist/{tutorID}")
|
||||||
Call<List<User>> getTutorBlacklistedByID(@Path("tutorID") String tutorID,@Header("Authorization") JwtToken token);
|
Call<List<User>> getTutorBlacklistedByID(@Path("tutorID") String tutorID);
|
||||||
|
|
||||||
@PUT("api/users/blacklist/{tutorID}")
|
@PUT("api/users/blacklist/{tutorID}")
|
||||||
Call<User> setTutorBlacklist(@Path("tutorID") String tutorID, @Body IsUsingListBool isUsing,@Header("Authorization") JwtToken token);
|
Call<User> setTutorBlacklist(@Path("tutorID") String tutorID, @Body IsUsingListBool isUsing);
|
||||||
|
|
||||||
@POST("api/users/blacklist/{tutorID}")
|
@POST("api/users/blacklist/{tutorID}")
|
||||||
Call<ResponseBody> addStudentToBlacklist(@Path("tutorID") String tutorID, @Body StudentIdModel student,@Header("Authorization") JwtToken token);
|
Call<ResponseBody> addStudentToBlacklist(@Path("tutorID") String tutorID, @Body StudentIdModel student);
|
||||||
|
|
||||||
@DELETE("api/users/blacklist/{tutorID}")
|
@DELETE("api/users/blacklist/{tutorID}")
|
||||||
Call<List<User>> removeStudentFromBlacklist(@Path("tutorID") String tutorID, @Body StudentIdModel student,@Header("Authorization") JwtToken token);
|
Call<List<User>> removeStudentFromBlacklist(@Path("tutorID") String tutorID, @Body StudentIdModel student);
|
||||||
|
|
||||||
@GET("api/users/whitelist/{tutorID}")
|
@GET("api/users/whitelist/{tutorID}")
|
||||||
Call<List<User>> getTutorwhitelistedByID(@Path("tutorID") String tutorID,@Header("Authorization") JwtToken token);
|
Call<List<User>> getTutorwhitelistedByID(@Path("tutorID") String tutorID);
|
||||||
|
|
||||||
@PUT("api/users/whitelist/{tutorID}")
|
@PUT("api/users/whitelist/{tutorID}")
|
||||||
Call<User> setTutorWhitelist(@Path("tutorID") String tutorID, @Body IsUsingListBool isUsing,@Header("Authorization") JwtToken token);
|
Call<User> setTutorWhitelist(@Path("tutorID") String tutorID, @Body IsUsingListBool isUsing);
|
||||||
|
|
||||||
@POST("api/users/whitelist/{tutorID}")
|
@POST("api/users/whitelist/{tutorID}")
|
||||||
Call<ResponseBody> addStudentTowhitelist(@Path("tutorID") String tutorID, @Body StudentIdModel student,@Header("Authorization") JwtToken token);
|
Call<ResponseBody> addStudentTowhitelist(@Path("tutorID") String tutorID, @Body StudentIdModel student);
|
||||||
|
|
||||||
@DELETE("api/users/whitelist/{tutorID}")
|
@DELETE("api/users/whitelist/{tutorID}")
|
||||||
Call<List<User>> removeStudentFromWhitelist(@Path("tutorID") String tutorID, @Body StudentIdModel student,@Header("Authorization") JwtToken token);
|
Call<List<User>> removeStudentFromWhitelist(@Path("tutorID") String tutorID, @Body StudentIdModel student);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user