* Returns the main <code>ApiDoc</code>, containing <code>ApiMethodDoc</code> and <code>ApiObjectDoc</code> objects
* @return An <code>ApiDoc</code> object
*/
public static JSONDoc getApiDoc(String version, String basePath, List<String> packages) {
Set<URL> urls = new HashSet<URL>();
FilterBuilder filter = new FilterBuilder();
log.debug("Found " + packages.size() + " package(s) to scan...");
for (String pkg : packages) {
log.debug("Adding package to JSONDoc recursive scan: " + pkg);
urls.addAll(ClasspathHelper.forPackage(pkg));
filter.includePackage(pkg);
}
reflections = new Reflections(new ConfigurationBuilder()
.filterInputsBy(filter)
.setUrls(urls)