Skip to content
Snippets Groups Projects
Select Git revision
  • b7876b130d6b32c07c5e8f3cb6a0ff1c29c2d9fe
  • main default
  • penenadpi/config-man
  • penenadpi/visualization-extension
  • penenadpi/visulization-html-extended
  • penenadpi/result-persistence
  • penenadpi/result-filter-fix-files
  • penenadpi/result-filter-fix
  • y1
  • 0.1.9
  • 0.1.8
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
  • 0.0.9
  • 0.0.8
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
28 results

persistence_example.py

Blame
  • persistence_example.py 634 B
    import requests
    import sys
    
    
    
    print("SHOW ALL RESULTS")
    
    URL = "http://127.0.0.1:8000/results"
    
    uuids = {
        "uuid": "8357c950-78d3-4a15-94c6-f911116dcd10",
    
    }
    
    response = requests.get(URL, uuids)
    print(response.json())
    
    scan_result = response.json()
    
    print(scan_result)
    
    uuid="8357c950-78d3-4a15-94c6-f911116dcd10"
    
    print('SHOW SINGLE RESULT')
    
    URL = "http://127.0.0.1:8000/results"
    
    response = requests.get(URL, uuids)
    scan_result = response.json()
    
    print(scan_result)
    
    print('DELETE SINGLE RESULT')
    
    URL = f"http://127.0.0.1:8000/results/{uuid}"
    
    response = requests.delete(URL)
    scan_result = response.json()
    
    print(scan_result)