Looking at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HCustomre…...
If I create this class:
package org.xwiki.contrib.rest;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.xwiki.component.annotation.Component;
import org.xwiki.rest.XWikiResource;
@Component("org.xwiki.contrib.rest.HelloWordResource")
@Path("/myresources/{myresourcename}")
class HelloWorldResource extends XWikiResource {
@GET
public String get(@PathParam("myresourcename")
@DefaultValue("world") String myresourcename)
{
return "Hello " + myresourcename;
}
}
Then what is the exact URI I use to access it. E.g. something like
http://localhost:8080/myresources/test? Not sure exactly what full URL is.
Thanks,
-Mark