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 {
|
public interface UserService {
|
||||||
@GET("api/users")
|
@GET("api/users")
|
||||||
Call<List<User>> getAllUsers(@Header("Authorization") JwtToken token);
|
Call<List<User>> getAllUsers();
|
||||||
|
|
||||||
@POST("api/users")
|
@POST("api/users")
|
||||||
Call<ResponseBody> createUser(@Body User user);
|
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 );
|
||||||
|
|
||||||
@GET("/api/users/tutors/page/{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}")
|
@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}")
|
@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}")
|
@PUT("api/users/{id}")
|
||||||
Call<User> updateUserByID(@Path("id") String userID, @Body User user);
|
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);
|
||||||
|
|
||||||
@GET("api/users/userLogin/{ldapLogin}")
|
@GET("api/users/userLogin/{ldapLogin}")
|
||||||
Call<String> getUserLdapLogin(@Path("ldapLogin") String ldapLogin);
|
Call<String> getUserLdapLogin(@Path("ldapLogin") String ldapLogin);
|
||||||
|
Loading…
Reference in New Issue
Block a user