@app.route('/scans/<int:scan_id>/kb/<int:vulnerability_id>', methods=['GET'])
@requires_auth
def get_kb(scan_id, vulnerability_id):
 scan_info = get_scan_info_from_id(scan_id)
 if (scan_info is None):
  abort(404, 'Scan not found')
 for (finding_id, finding) in enumerate(kb.kb.get_all_findings()):
  if (vulnerability_id == finding_id):
   return jsonify(finding_to_json(finding, scan_id, finding_id, detailed=True))
 abort(404, 'Not found')

@ app . route ( '/scans/<int:scan_id>/kb/<int:vulnerability_id>' , methods = [ 'GET' ] ) @ requires_auth def get_kb ( scan_id , vulnerability_id ) : scan_info = get_scan_info_from_id ( scan_id ) if ( scan_info is None ) : abort ( 404 , 'Scan not found' ) for ( finding_id , finding ) in enumerate ( kb . kb . get_all_findings ( ) ) : if ( vulnerability_id == finding_id ) : return jsonify ( finding_to_json ( finding , scan_id , finding_id , detailed = True ) ) abort ( 404 , 'Not found' )
the whole information related to the specified vulnerability id .