Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/content/en/api/api-v2-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DefectDojo\'s API is created using [Django Rest
Framework](http://www.django-rest-framework.org/). The documentation of
each endpoint is available within each DefectDojo installation at
[`/api/v2/oa3/swagger-ui`](https://demo.defectdojo.org/api/v2/oa3/swagger-ui/) and can be accessed by choosing the API v2
Docs link on the user drop down menu in the header.
Docs link on the user drop down menu in the header.

![image](images/api_v2_1.png)

Expand Down Expand Up @@ -155,7 +155,6 @@ Example for importing a scan result:
tags:test
scan_type:ZAP Scan
minimum_severity:Info
skip_duplicates:true
close_old_findings:false

- Body tab
Expand Down
5 changes: 1 addition & 4 deletions unittests/test_apiv2_scan_import_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

class ScanImportOptionsTest(APITestCase):

"""
Test the options `skip_duplicates` and `close_old_findings` for the scan
import APIv2 endpoint with ZAP
"""
"""Test uploading empty reports or no report at all"""

fixtures = ["dojo_testdata.json"]
EMPTY_ZAP_SCAN = """<?xml version="1.0"?>
Expand Down