Interface TenantsResource


  • @Path("/api/v1/tenants")
    public interface TenantsResource
    A JAX-RS interface. An implementation of this interface must be provided.
    • 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`.