@Path(value="/user")
@Produces(value={"application/json","application/xml"})
public class UserResource
extends Object
| Constructor and Description |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(String username,
String currentPassword,
String newPassword) |
javax.ws.rs.core.Response |
createUser(User user) |
javax.ws.rs.core.Response |
createUsersWithArrayInput(User[] users) |
javax.ws.rs.core.Response |
createUsersWithListInput(List<User> users) |
javax.ws.rs.core.Response |
deleteUser(String userName) |
javax.ws.rs.core.Response |
getUserById(int id) |
javax.ws.rs.core.Response |
getUserByName(String userName) |
UserData |
getUserData() |
javax.ws.rs.core.Response |
loginUser(String username,
String password) |
javax.ws.rs.core.Response |
logoutUser() |
void |
setUserData(UserData userData) |
javax.ws.rs.core.Response |
updateUser(String username,
User user) |
public UserData getUserData()
public void setUserData(UserData userData)
@POST public javax.ws.rs.core.Response createUser(User user)
@POST @Path(value="/createWithArray") public javax.ws.rs.core.Response createUsersWithArrayInput(User[] users)
@POST @Path(value="/createWithList") public javax.ws.rs.core.Response createUsersWithListInput(List<User> users)
@Path(value="/{username}")
@PUT
public javax.ws.rs.core.Response updateUser(@PathParam(value="username")
String username,
User user)
@PATCH
@Path(value="/{username}")
public void changePassword(@PathParam(value="username")
String username,
@QueryParam(value="currentPassword")
String currentPassword,
@QueryParam(value="newPassword")
String newPassword)
@DELETE
@Path(value="/{username}")
public javax.ws.rs.core.Response deleteUser(@PathParam(value="username")
String userName)
@GET
@Path(value="/{username}")
public javax.ws.rs.core.Response getUserByName(@PathParam(value="username")
String userName)
throws ApiException
ApiException@GET
@Path(value="/{id}")
public javax.ws.rs.core.Response getUserById(@PathParam(value="id")
int id)
throws ApiException
ApiException@GET
@Path(value="/login")
public javax.ws.rs.core.Response loginUser(@QueryParam(value="username")
String username,
@QueryParam(value="password")
String password)
@GET @Path(value="/logout") public javax.ws.rs.core.Response logoutUser()
Copyright © 2021 Eclipse Foundation. All rights reserved.