@Path(value="groups")
public interface GroupsResource
@GET
@Produces(value="application/xml")
@Path(value="/{group-id}{fields}")
Group getGroup(@PathParam(value="group-id")
long group_id,
@PathParam(value="fields")
String fields)
@GET
@Produces(value="application/xml")
@Path(value="/{group-id}/posts{fields}")
Posts getPosts(@PathParam(value="group-id")
long group_id,
@QueryParam(value="start")
Long start,
@QueryParam(value="count")
Long count,
@QueryParam(value="order")
Order order,
@QueryParam(value="category")
PostCategoryCode category,
@QueryParam(value="modified-since")
Long modified_since,
@PathParam(value="fields")
String fields)
@POST
@Consumes(value="application/xml")
@Path(value="/{group-id}/posts")
void addPost(@PathParam(value="group-id")
long group_id,
Post post)
Apache Camel