public interface RolesResource
@POST @Consumes(value="application/json") @Produces(value="application/json") Response create(Role role) throws Exception
Exception@POST @Consumes(value="text/plain") @Produces(value="application/json") Response create(String roleName) throws Exception
Exception@PUT @Consumes(value="application/json") @Produces(value="application/json") @Path(value="{id}") void update(@PathParam(value="id") String id, Role role) throws Exception
ExceptionCopyright © 2015. All Rights Reserved.