Endpoint moduleEndpoint = new Endpoint("/{site}/modules/{module}", Method.GET, "getmodule");
moduleEndpoint.setDescription("Returns the module with the given id");
moduleEndpoint.addFormat(Format.xml());
moduleEndpoint.addStatus(ok("the module was found and is returned as part of the response"));
moduleEndpoint.addStatus(notFound("either the site or the module was not found"));
moduleEndpoint.addPathParameter(new Parameter("site", Parameter.Type.String, "The site identifier"));
moduleEndpoint.addPathParameter(new Parameter("module", Parameter.Type.String, "The module identifier"));
moduleEndpoint.setTestForm(new TestForm());
docs.addEndpoint(Endpoint.Type.READ, moduleEndpoint);
return EndpointDocumentationGenerator.generate(docs);