@Path(value="/user")
@Produces(value={"application/json","application/xml"})
public class UserResource
extends Object
| Constructor and Description |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getUserByName(String username) |
javax.ws.rs.core.Response |
loginUser(String username,
String password) |
javax.ws.rs.core.Response |
logoutUser() |
javax.ws.rs.core.Response |
updateUser(String username,
User user) |
@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)
@PUT
@Path(value="/{username}")
public javax.ws.rs.core.Response updateUser(@PathParam(value="username")
String username,
User user)
@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="/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 © 2022 Eclipse Foundation. All rights reserved.