@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 |
getRecentStories()
Retrieves the most recent stories that are in published status.
|
javax.ws.rs.core.Response |
getStoryById(int id)
Returns a history from its identifier.
|
@GET @Path(value="recent") public javax.ws.rs.core.Response getRecentStories()
@GET
@Path(value="{id}")
public javax.ws.rs.core.Response getStoryById(@PathParam(value="id")
int id)
id - The id of the story to return.Copyright © 2022. All rights reserved.