I have created an OSGi Bundle and uploaded to a CQ5 server. This bundle contains a SlingServlet like this:
@SlingServlet(paths = { "/rest/matches" }, methods = { "POST", "GET" })
public class MatchDayRestServlet extends SlingAllMethodsServlet {
private static final long serialVersionUID = 5088643736228890684L;
@Override
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {
String responseString = "Hello World!";
response.setStatus(HttpServletResponse.SC_OK);
response.getWriter().write(responseString);
response.getWriter().flush();
response.getWriter().close();
}
}
Now I am stucked because I have no idea what URL I should use to make GET calls to this servlet.
My CRXDE is located at http://HOST:IP/crx/de/index.jsp