@Path(value="profiles")
public interface ProfileResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addProfile(ProfileData profileData) |
javax.ws.rs.core.Response |
changeProfileStatus(java.lang.String profileID,
java.lang.String action) |
javax.ws.rs.core.Response |
findProfiles(java.lang.Integer start,
java.lang.Integer size) |
javax.ws.rs.core.Response |
getProfile(java.lang.String profileID) |
javax.ws.rs.core.Response |
removeProfile(java.lang.String profileID) |
javax.ws.rs.core.Response |
updateProfile(java.lang.String profileID,
ProfileData profileData) |
@GET @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response findProfiles(@QueryParam(value="start") java.lang.Integer start, @QueryParam(value="size") java.lang.Integer size)
@GET @Path(value="{profileID}") @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response getProfile(@PathParam(value="profileID") java.lang.String profileID)
@POST @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response addProfile(ProfileData profileData)
@PUT @Path(value="{profileID}") @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response updateProfile(@PathParam(value="profileID") java.lang.String profileID, ProfileData profileData)
@POST @Path(value="{profileID}") @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response changeProfileStatus(@PathParam(value="profileID") java.lang.String profileID, @QueryParam(value="action") java.lang.String action)
@DELETE @Path(value="{profileID}") @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response removeProfile(@PathParam(value="profileID") java.lang.String profileID)