removed token from arg list v2

This commit is contained in:
Marcin Jedyński 2018-08-26 16:32:01 +02:00
parent 6dcad78524
commit 9c17221e65

View File

@ -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);