@ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( "/graph/{name}/{version}" ) public Response getModuleGraph ( @ PathParam ( "name" ) final String moduleName , @ PathParam ( "version" ) final String moduleVersion , @ Context final UriInfo uriInfo ) { LOG . info ( "Dependency Checker got a get module graph export request." ) ; if ( moduleName == null || moduleVersion == null ) { return Response . serverError ( ) . status ( HttpStatus . NOT_ACCEPTABLE_406 ) . build ( ) ; } final FiltersHolder filters = new FiltersHolder ( ) ; filters . init ( uriInfo . getQueryParameters ( ) ) ; final String moduleId = DbModule . generateID ( moduleName , moduleVersion ) ; final AbstractGraph moduleGraph = getGraphsHandler ( filters ) . getModuleGraph ( moduleId ) ; return Response . ok ( moduleGraph ) . build ( ) ; }
Perform a module dependency graph of the target and return the graph as a JSON