@Produces(value="application/json")
public interface TenantRestService
Modifier and Type | Method and Description |
---|---|
ResourceOptionsDto |
availableOperations(javax.ws.rs.core.UriInfo context) |
void |
createTenant(TenantDto tenant) |
TenantResource |
getTenant(String id) |
CountResultDto |
getTenantCount(javax.ws.rs.core.UriInfo uriInfo) |
List<TenantDto> |
queryTenants(javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults) |
static final String PATH
@Path(value="/{id}") TenantResource getTenant(@PathParam(value="id") String id)
@GET @Produces(value="application/json") List<TenantDto> queryTenants(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
@GET @Path(value="/count") @Produces(value="application/json") CountResultDto getTenantCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/create") @Consumes(value="application/json") void createTenant(TenantDto tenant)
@OPTIONS @Produces(value="application/json") ResourceOptionsDto availableOperations(@Context javax.ws.rs.core.UriInfo context)
Copyright © 2019. All rights reserved.