@Path(value="/tenant/{tenantId}/shift")
@Produces(value="application/json")
@Consumes(value="application/json")
@GenRestBuilder
public interface ShiftRestService
| Modifier and Type | Method and Description |
|---|---|
ShiftView |
addShift(Integer tenantId,
ShiftView shift) |
ShiftView |
getShift(Integer tenantId,
Long id) |
List<ShiftView> |
getShiftList(Integer tenantId) |
Boolean |
removeShift(Integer tenantId,
Long id) |
ShiftView |
updateShift(Integer tenantId,
ShiftView shift) |
@GET @Path(value="/") List<ShiftView> getShiftList(@PathParam(value="tenantId") Integer tenantId)
@GET
@Path(value="/{id}")
ShiftView getShift(@PathParam(value="tenantId")
Integer tenantId,
@PathParam(value="id")
Long id)
@POST @Path(value="/add") ShiftView addShift(@PathParam(value="tenantId") Integer tenantId, ShiftView shift)
shift - never null@PUT @Path(value="/update") ShiftView updateShift(@PathParam(value="tenantId") Integer tenantId, ShiftView shift)
shift - never nullCopyright © 2017–2019 JBoss by Red Hat. All rights reserved.