removed token from arg list v2
This commit is contained in:
parent
6dcad78524
commit
9c17221e65
@ -19,28 +19,28 @@ import retrofit2.http.Header;
|
||||
|
||||
public interface UserService {
|
||||
@GET("api/users")
|
||||
Call<List<User>> getAllUsers(@Header("Authorization") JwtToken token);
|
||||
Call<List<User>> getAllUsers();
|
||||
|
||||
@POST("api/users")
|
||||
Call<ResponseBody> createUser(@Body User user);
|
||||
|
||||
@GET("api/users/page/{pageNum}")
|
||||
Call<PagedResult> getPagedUsers(@Path("pageNum") String pageNum, @Header("Authorization") JwtToken token);
|
||||
Call<PagedResult> getPagedUsers(@Path("pageNum") String pageNum );
|
||||
|
||||
@GET("/api/users/tutors/page/{pageNum}")
|
||||
Call<PagedResult> getPagedTutors(@Path("pageNum") String pageNum, @Header("Authorization") JwtToken token);
|
||||
Call<PagedResult> getPagedTutors(@Path("pageNum") String pageNum);
|
||||
|
||||
@GET("/api/users/students/page/{pageNum}")
|
||||
Call<PagedResult> getPagedStudents(@Path("pageNum") String pageNum, @Header("Authorization") JwtToken token);
|
||||
Call<PagedResult> getPagedStudents(@Path("pageNum") String pageNum);
|
||||
|
||||
@GET("api/users/{id}")
|
||||
Call<User> getUserByID(@Path("id") String userID, @Header("Authorization") JwtToken token);
|
||||
Call<User> getUserByID(@Path("id") String userID);
|
||||
|
||||
@PUT("api/users/{id}")
|
||||
Call<User> updateUserByID(@Path("id") String userID, @Body User user);
|
||||
|
||||
@DELETE("api/users/{id}")
|
||||
Call<User> deleteUserByID(@Path("id") String userID, @Header("Authorization") JwtToken token);
|
||||
Call<User> deleteUserByID(@Path("id") String userID);
|
||||
|
||||
@GET("api/users/userLogin/{ldapLogin}")
|
||||
Call<String> getUserLdapLogin(@Path("ldapLogin") String ldapLogin);
|
||||
|
Loading…
Reference in New Issue
Block a user