@@ -152,22 +152,22 @@ paths:
152152 parameters :
153153 - $ref : " #/components/parameters/ScanID"
154154 requestBody :
155- description : " The new status"
156- content :
157- application/json :
155+ description : " The new status"
156+ content :
157+ application/json :
158+ schema :
159+ $ref : " #/components/schemas/Status"
160+ examples :
158161 schema :
159- $ref : " #/components/schemas/Status"
160- examples :
161- schema :
162- description : " Schema of a status response."
163- status of a stored scan :
164- $ref : " #/components/examples/scan_status_stored"
165- status of a running scan :
166- $ref : " #/components/examples/scan_status_running"
167- status of a succeeded scan :
168- $ref : " #/components/examples/scan_status_success"
169- status of a failed scan :
170- $ref : " #/components/examples/scan_status_fail"
162+ description : " Schema of a status response."
163+ status of a stored scan :
164+ $ref : " #/components/examples/scan_status_stored"
165+ status of a running scan :
166+ $ref : " #/components/examples/scan_status_running"
167+ status of a succeeded scan :
168+ $ref : " #/components/examples/scan_status_success"
169+ status of a failed scan :
170+ $ref : " #/components/examples/scan_status_fail"
171171 responses :
172172 " 204 " :
173173 description : " Status received"
@@ -228,11 +228,11 @@ components:
228228 $ref : " #/components/schemas/ScanID"
229229 target :
230230 $ref : " #/components/schemas/Target"
231- scanner_preferences :
231+ scan_preferences :
232232 description : " Overwrite the default settings of the Scanner."
233233 type : " array"
234234 items :
235- $ref : " #/components/schemas/ScannerPreference "
235+ $ref : " #/components/schemas/ScanPreference "
236236 vts :
237237 type : " array"
238238 description : " A collection of VTs, which are run for the given target."
@@ -396,7 +396,7 @@ components:
396396 - aes
397397 - des
398398
399- ScannerPreference :
399+ ScanPreference :
400400 description : " Consists of a preference ID and its value."
401401 type : " object"
402402 properties :
@@ -573,14 +573,10 @@ components:
573573 items :
574574 $ref : " #/components/schemas/ScanAction"
575575
576-
577576 examples :
578577 sensor_simple :
579578 description : " A simple example for sensor."
580- value :
581- {
582- " sensor_id " : " 6c591f83-8f7b-452a-8c78-ba35779e682f"
583- }
579+ value : { "sensor_id": "6c591f83-8f7b-452a-8c78-ba35779e682f" }
584580 scan_simple :
585581 description : " A simple example for creating a scan."
586582 value :
@@ -656,7 +652,7 @@ components:
656652 " reverse_lookup_unify " : true,
657653 " reverse_lookup_only " : false,
658654 },
659- " scanner_preferences " :
655+ " scan_preferences " :
660656 [
661657 { "id": "target_port", "value": "443" },
662658 { "id": "use_https", "value": "1" },
@@ -677,19 +673,20 @@ components:
677673 value : " 6c591f83-8f7b-452a-8c78-ba35779e682f"
678674 scan_actions :
679675 description : " Actions to perform"
680- value : [
676+ value :
677+ [
681678 {
682679 " scan_id " : " 6c591f83-8f7b-452a-8c78-ba35779e682f" ,
683- " action " : " start"
680+ " action " : " start" ,
684681 },
685682 {
686683 " scan_id " : " 24591f83-8f7b-452a-8c78-ba35779e6816" ,
687- " action " : " stop"
684+ " action " : " stop" ,
688685 },
689686 {
690687 " scan_id " : " 13591f83-8f74-45da-8c7d-ba35779e682a" ,
691- " action " : " delete"
692- }
688+ " action " : " delete" ,
689+ },
693690 ]
694691
695692 scan_results :
0 commit comments