@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 |
getStory(Long id) |
javax.ws.rs.core.Response |
listRecents() |
javax.ws.rs.core.Response |
searchStories(String text) |
javax.ws.rs.core.Response |
searchStories(String text,
Integer page,
Integer maxItems) |
@Path(value="recent") @GET public javax.ws.rs.core.Response listRecents()
@Path(value="{id}")
@GET
public javax.ws.rs.core.Response getStory(@PathParam(value="id")
Long id)
throws SecurityException
SecurityException@GET
public javax.ws.rs.core.Response searchStories(@QueryParam(value="contains")
String text,
@QueryParam(value="selectedPage")
Integer page,
@QueryParam(value="maxItems")
Integer maxItems)
@GET
public javax.ws.rs.core.Response searchStories(@QueryParam(value="contains")
String text)
Copyright © 2024. All rights reserved.