@Path(value="/tenant")
@Produces(value="application/json")
@Consumes(value="application/json")
@GenRestBuilder
public interface TenantRestService
| Modifier and Type | Method and Description |
|---|---|
Tenant |
addTenant(RosterState intialRosterState) |
RosterParametrization |
getRosterParametrization(Integer id) |
List<ZoneId> |
getSupportedTimezones() |
Tenant |
getTenant(Integer id) |
List<Tenant> |
getTenantList() |
Boolean |
removeTenant(Integer id) |
RosterParametrization |
updateRosterParametrization(RosterParametrization rosterParametrization) |
@GET
@Path(value="/{id : \\d+}")
Tenant getTenant(@PathParam(value="id")
Integer id)
id - never null@POST @Path(value="/add") Tenant addTenant(RosterState intialRosterState)
tenant - never nullAbstractPersistable.getId() that is never null@POST
@Path(value="/remove/{id}")
Boolean removeTenant(@PathParam(value="id")
Integer id)
@GET
@Path(value="/{id}")
RosterParametrization getRosterParametrization(@PathParam(value="id")
Integer id)
id - never null@POST @Path(value="/parametrization/update") RosterParametrization updateRosterParametrization(RosterParametrization rosterParametrization)
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.