@Path(value="/microstory") public class StoryResource extends Object
| Constructor and Description |
|---|
StoryResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
exploreStories(String text,
String gender,
String topic,
String startDate,
String endDate,
Integer page,
Integer maxResults) |
javax.ws.rs.core.Response |
getMostViewedStories() |
javax.ws.rs.core.Response |
getRecentStories() |
javax.ws.rs.core.Response |
getStoryById(int id) |
@GET @Path(value="/recent") @Produces(value="application/json") public javax.ws.rs.core.Response getRecentStories()
@GET
@Path(value="/{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getStoryById(@PathParam(value="id")
int id)
throws javax.ws.rs.NotFoundException
javax.ws.rs.NotFoundException@GET
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response exploreStories(@QueryParam(value="contains")
String text,
@QueryParam(value="gender")
String gender,
@QueryParam(value="topic")
String topic,
@QueryParam(value="startDate")
String startDate,
@QueryParam(value="endDate")
String endDate,
@QueryParam(value="page")
Integer page,
@QueryParam(value="maxResults")
Integer maxResults)
@GET @Path(value="/hottest") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getMostViewedStories()
Copyright © 2023. All rights reserved.