@Path(value="microstories") @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 |
deleteMicrostory(Long id) |
javax.ws.rs.core.Response |
getOwnMicrostories(String login,
int page,
int size) |
javax.ws.rs.core.Response |
getStoriesByFilter(es.uvigo.esei.microstories.domain.types.GenreType genre,
es.uvigo.esei.microstories.domain.types.ThemeType theme,
Date initialDate,
int page,
int size) |
javax.ws.rs.core.Response |
getStoryById(Long id) |
javax.ws.rs.core.Response |
listHottestStories() |
javax.ws.rs.core.Response |
listRecentStories() |
javax.ws.rs.core.Response |
searchStories(String text,
int page,
int size) |
javax.ws.rs.core.Response |
updateUserMicrostory(Long id,
es.uvigo.esei.microstories.dtos.StoryCreateDto storyDto) |
@Path(value="recents") @GET public javax.ws.rs.core.Response listRecentStories()
@GET @Path(value="trending/hottest") public javax.ws.rs.core.Response listHottestStories()
@GET
@Path(value="filter")
public javax.ws.rs.core.Response getStoriesByFilter(@QueryParam(value="genre")
es.uvigo.esei.microstories.domain.types.GenreType genre,
@QueryParam(value="theme")
es.uvigo.esei.microstories.domain.types.ThemeType theme,
@QueryParam(value="publication")
Date initialDate,
@QueryParam(value="page") @DefaultValue(value="0")
int page,
@QueryParam(value="size") @DefaultValue(value="10")
int size)
@GET
@Path(value="{id}")
public javax.ws.rs.core.Response getStoryById(@PathParam(value="id")
Long id)
@GET
public javax.ws.rs.core.Response searchStories(@QueryParam(value="contains")
String text,
@QueryParam(value="page") @DefaultValue(value="1")
int page,
@QueryParam(value="size") @DefaultValue(value="10")
int size)
@GET
@Path(value="user/{login}/microstory")
public javax.ws.rs.core.Response getOwnMicrostories(@PathParam(value="login")
String login,
@QueryParam(value="page") @DefaultValue(value="0")
int page,
@QueryParam(value="size") @DefaultValue(value="10")
int size)
@PUT
@Path(value="microstory/{id}")
public javax.ws.rs.core.Response updateUserMicrostory(@PathParam(value="id")
Long id,
es.uvigo.esei.microstories.dtos.StoryCreateDto storyDto)
@DELETE
@Path(value="{id}")
public javax.ws.rs.core.Response deleteMicrostory(@PathParam(value="id")
Long id)
Copyright © 2025. All rights reserved.