Package io.apicurio.multitenant.api
Interface TenantsResource
-
@Path("/api/v1/tenants") public interface TenantsResource
A JAX-RS interface. An implementation of this interface must be provided.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Response
createTenant(NewRegistryTenantRequest data)
Creates a new instance of a `Tenant`.javax.ws.rs.core.Response
deleteTenant(String tenantId)
Deletes an existing `Tenant`.RegistryTenant
getTenant(String tenantId)
Gets the details of a single instance of a `Tenant`.List<RegistryTenant>
getTenants()
Gets a list of all `Tenant` entities.
-
-
-
Method Detail
-
getTenants
@GET @Produces("application/json") List<RegistryTenant> getTenants()
Gets a list of all `Tenant` entities.
-
createTenant
@POST @Produces("application/json") @Consumes("application/json") javax.ws.rs.core.Response createTenant(NewRegistryTenantRequest data)
Creates a new instance of a `Tenant`.
-
getTenant
@Path("/{tenantId}") @GET @Produces("application/json") RegistryTenant getTenant(@PathParam("tenantId") String tenantId)
Gets the details of a single instance of a `Tenant`.
-
deleteTenant
@Path("/{tenantId}") @DELETE javax.ws.rs.core.Response deleteTenant(@PathParam("tenantId") String tenantId)
Deletes an existing `Tenant`.
-
-