@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 |
createStory(es.uvigo.esei.dgss.microstories.domain.Story story) |
javax.ws.rs.core.Response |
getRecentStorys() |
javax.ws.rs.core.Response |
getStory(int id) |
@Path(value="{id}")
@GET
public javax.ws.rs.core.Response getStory(@PathParam(value="id")
int id)
@Path(value="recent") @GET public javax.ws.rs.core.Response getRecentStorys()
@Path(value="{id}")
@POST
public javax.ws.rs.core.Response createStory(es.uvigo.esei.dgss.microstories.domain.Story story)
Copyright © 2019. All rights reserved.