@Path(value="microstory") @Consumes(value="application/json") @Produces(value="application/json") public class StoryResource extends Object
| Constructor and Description |
|---|
StoryResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getRecentStorys()
Returns the last 6 stories.
|
javax.ws.rs.core.Response |
getRecentStorys(int id)
Returns a story identified by the id.
|
@Path(value="recent") @GET public javax.ws.rs.core.Response getRecentStorys()
OK response containing the list of stories.@Path(value="{id}")
@GET
public javax.ws.rs.core.Response getRecentStorys(@PathParam(value="id")
int id)
id - the identifier of a storyOK response containing the Story with the
provided identifier.Copyright © 2019. All rights reserved.