@Path(value="user") public class UserResource extends Object
| Constructor and Description |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
findStoriesByAuthor(String login,
int page,
int limit)
Returns a
List<Story> written by a specified Author. |
@Path(value="/{login}/microstory")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findStoriesByAuthor(@PathParam(value="login")
String login,
@QueryParam(value="page")
int page,
@QueryParam(value="limit")
int limit)
throws SecurityException,
IllegalArgumentException
List<Story> written by a specified Author.login - the Author that wants to retrieve his stories.page - the number of page.limit - the number of stories in the page.OK response containing the List<Story> with the provided author login.SecurityExceptionIllegalArgumentExceptionCopyright © 2018. All rights reserved.