org.jboss.resteasy.keystone.client

## Interface RolesResource

-     public interface RolesResource

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Response` | `create(Role role)`
    `Response` | `create(String roleName)`
    `void` | `delete(String id)`
    `Role` | `get(String id)`
    `void` | `update(String id, Role role)`

- - ### Method Detail

    - #### create

          @POST
          @Consumes(value="application/json")
          @Produces(value="application/json")
          Response create(Role role)
                          throws Exception

      Throws:
        `Exception`

    - #### create

          @POST
          @Consumes(value="text/plain")
          @Produces(value="application/json")
          Response create(String roleName)
                          throws Exception

      Throws:
        `Exception`

    - #### update

          @PUT
          @Consumes(value="application/json")
          @Produces(value="application/json")
          @Path(value="{id}")
          void update(@PathParam(value="id")
                                                              String id,
                                                              Role role)
                      throws Exception

      Throws:
        `Exception`

    - #### delete

          @DELETE
          @Path(value="{id}")
          void delete(@PathParam(value="id")
                                     String id)

    - #### get

          @GET
          @Path(value="{id}")
          @Produces(value="application/json")
          Role get(@PathParam(value="id")
                                             String id)

Copyright © 2014. All Rights Reserved.