getFileByPathEndpoint.addOptionalParameter(new Parameter("type", Parameter.Type.String, "The file type, e. g. 'image'"));
getFileByPathEndpoint.addOptionalParameter(new Parameter("sort", Parameter.Type.Enum, "The sort parameter", "modified-desc", sortParams));
getFileByPathEndpoint.addOptionalParameter(new Parameter("limit", Parameter.Type.String, "Offset within the result set", "10"));
getFileByPathEndpoint.addOptionalParameter(new Parameter("offset", Parameter.Type.String, "Number of result items to include", "0"));
getFileByPathEndpoint.setTestForm(new TestForm());
docs.addEndpoint(Endpoint.Type.READ, getFileByPathEndpoint);
// GET /{resource}
Endpoint getFileByURIEndpoint = new Endpoint("/{resource}", Method.GET, "getfile");
getFileByURIEndpoint.setDescription("Returns the file with the given id");
getFileByURIEndpoint.addFormat(Format.xml());