public interface ProjectsResource
| Modifier and Type | Method and Description |
|---|---|
void |
addUserRole(String id,
String userId,
String roleId) |
javax.ws.rs.core.Response |
create(Project project) |
javax.ws.rs.core.Response |
delete(String id) |
Project |
get(String id) |
Projects |
query(String name) |
void |
removeUserRole(String id,
String userId,
String roleId) |
void |
update(String id,
Project project) |
@POST @Consumes(value="application/json") @Produces(value="application/json") javax.ws.rs.core.Response create(Project project) throws Exception
Exception@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="{id}")
void update(@PathParam(value="id")
String id,
Project project)
throws Exception
Exception@DELETE
@Path(value="{id}")
javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
@GET @Produces(value="application/json") Projects query(@QueryParam(value="name") String name)
@GET
@Path(value="{id}")
@Produces(value="application/json")
Project get(@PathParam(value="id")
String id)
@PUT
@Path(value="{id}/users/{user}/roles/{role}")
void addUserRole(@PathParam(value="id")
String id,
@PathParam(value="user")
String userId,
@PathParam(value="role")
String roleId)
Copyright © 2017 JBoss by Red Hat. All rights reserved.