@Produces(value="application/json")
public interface TaskRestService
Modifier and Type | Method and Description |
---|---|
void |
createTask(TaskDto taskDto) |
TaskResource |
getTask(String id) |
TaskReportResource |
getTaskReportResource() |
Object |
getTasks(javax.ws.rs.core.Request request,
javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults) |
CountResultDto |
getTasksCount(javax.ws.rs.core.UriInfo uriInfo) |
List<TaskDto> |
queryTasks(TaskQueryDto query,
Integer firstResult,
Integer maxResults)
Expects the same parameters as
TaskRestService#getTasks(UriInfo, Integer, Integer) (as
JSON message body) and allows more than one variable check. |
CountResultDto |
queryTasksCount(TaskQueryDto query) |
static final String PATH
@Path(value="/{id}") TaskResource getTask(@PathParam(value="id") String id)
@GET @Produces(value={"application/json","application/hal+json"}) Object getTasks(@Context javax.ws.rs.core.Request request, @Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
@POST @Consumes(value="application/json") @Produces(value="application/json") List<TaskDto> queryTasks(TaskQueryDto query, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
TaskRestService#getTasks(UriInfo, Integer, Integer)
(as
JSON message body) and allows more than one variable check.query
- firstResult
- maxResults
- @GET @Path(value="/count") @Produces(value="application/json") CountResultDto getTasksCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/count") @Consumes(value="application/json") @Produces(value="application/json") CountResultDto queryTasksCount(TaskQueryDto query)
@POST @Path(value="/create") @Consumes(value="application/json") void createTask(TaskDto taskDto)
@Path(value="/report") TaskReportResource getTaskReportResource()
Copyright © 2019. All rights reserved.