@Path(value="roles")
public interface IRoleResource
| Modifier and Type | Method and Description |
|---|---|
io.apiman.manager.api.beans.idm.RoleBean |
create(io.apiman.manager.api.beans.idm.NewRoleBean bean)
Use this endpoint to create a new apiman role.
|
void |
delete(String roleId)
Use this endpoint to delete a role by its ID.
|
io.apiman.manager.api.beans.idm.RoleBean |
get(String roleId)
Use this endpoint to retrieve information about a single Role by its
ID.
|
List<io.apiman.manager.api.beans.idm.RoleBean> |
list()
This endpoint lists all of the roles currently defined in apiman.
|
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.RoleBean> |
search(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
This endpoint provides a way to search for roles.
|
void |
update(String roleId,
io.apiman.manager.api.beans.idm.UpdateRoleBean bean)
Use this endpoint to update the information about an existing role.
|
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
io.apiman.manager.api.beans.idm.RoleBean create(io.apiman.manager.api.beans.idm.NewRoleBean bean)
throws RoleAlreadyExistsException,
NotAuthorizedException
bean - The new role.RoleAlreadyExistsExceptionNotAuthorizedException@GET @Produces(value="application/json") List<io.apiman.manager.api.beans.idm.RoleBean> list() throws NotAuthorizedException
NotAuthorizedException@GET
@Path(value="{roleId}")
@Produces(value="application/json")
io.apiman.manager.api.beans.idm.RoleBean get(@PathParam(value="roleId")
String roleId)
throws RoleNotFoundException,
NotAuthorizedException
roleId - The role ID.RoleNotFoundExceptionNotAuthorizedException@PUT
@Path(value="{roleId}")
@Consumes(value="application/json")
void update(@PathParam(value="roleId")
String roleId,
io.apiman.manager.api.beans.idm.UpdateRoleBean bean)
throws RoleNotFoundException,
NotAuthorizedException
roleId - The role ID.bean - Updated role information.RoleNotFoundExceptionNotAuthorizedException@DELETE
@Path(value="{roleId}")
void delete(@PathParam(value="roleId")
String roleId)
throws RoleNotFoundException,
NotAuthorizedException
roleId - The role ID.RoleNotFoundExceptionNotAuthorizedException@POST
@Path(value="search")
@Consumes(value="application/json")
@Produces(value="application/json")
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.RoleBean> search(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
throws InvalidSearchCriteriaException,
NotAuthorizedException
criteria - The search criteria.InvalidSearchCriteriaExceptionNotAuthorizedExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.