getPending.addOptionalParameter(new Parameter("type", Parameter.Type.String, "The file type, e. g. 'image'"));
getPending.addOptionalParameter(new Parameter("sort", Parameter.Type.Enum, "The sort parameter", "modified-desc", sortParams));
getPending.addOptionalParameter(new Parameter("limit", Parameter.Type.String, "Offset within the result set", "10"));
getPending.addOptionalParameter(new Parameter("offset", Parameter.Type.String, "Number of result items to include", "0"));
getPending.setTestForm(new TestForm());
docs.addEndpoint(Endpoint.Type.READ, getPending);
// POST /
Endpoint createFileEndpoint = new Endpoint("/", Method.POST, "createfile");
createFileEndpoint.setDescription("Creates a new file, either at the given path or at a random location and returns the REST url of the created resource.");
createFileEndpoint.addFormat(Format.xml());