private ApiDoc getApiDoc ( Class < ? > controller , MethodDisplay displayMethodAs ) { log . debug ( "Getting JSONDoc for class: " + controller . getName ( ) ) ; ApiDoc apiDoc = initApiDoc ( controller ) ; apiDoc . setSupportedversions ( JSONDocApiVersionDocBuilder . build ( controller ) ) ; apiDoc . setAuth ( JSONDocApiAuthDocBuilder . getApiAuthDocForController ( controller ) ) ; apiDoc . setMethods ( getApiMethodDocs ( controller , displayMethodAs ) ) ; if ( controller . isAnnotationPresent ( Api . class ) ) { apiDoc = mergeApiDoc ( controller , apiDoc ) ; } return apiDoc ; }
Gets the API documentation for a single class annotated with