@Path(value="user") @Consumes(value="application/json") @Produces(value="application/json") public class UserResource extends Object
| Constructor and Description |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
listUserStories(String login,
int page,
int maxItems)
Return the stories from the logged user.
|
@Path(value="/{login}/microstory")
@GET
public javax.ws.rs.core.Response listUserStories(@PathParam(value="login")
String login,
@DefaultValue(value="0") @QueryParam(value="page")
int page,
@DefaultValue(value="10") @QueryParam(value="maxItems")
int maxItems)
login - an string containing the user login for security purposespage - the number of the page that's been requestedmaxItems - the maximum number of items on each pageOK response containing a list of user's stories, or an
FORBIDDEN if the user isn't logged or is trying to get
another user's stories.Copyright © 2020. All rights reserved.