-
Notifications
You must be signed in to change notification settings - Fork 27
/
openapi.yaml
11314 lines (11314 loc) · 306 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
openapi: "3.0.3"
info:
title: "ZAP API"
description: "The HTTP API for controlling and accessing ZAP."
contact:
name: "ZAP User Group"
url: "https://groups.google.com/group/zaproxy-users"
email: "zaproxy-users@googlegroups.com"
license:
name: "Apache 2.0"
url: "https://www.apache.org/licenses/LICENSE-2.0.html"
version: "Dev Build"
servers:
- url: "http://zap"
description: "The URL while proxying through ZAP."
- url: "http://{address}:{port}"
description: "The URL of a Local Proxy of ZAP."
variables:
address:
description: "The address ZAP is listening on."
default: "127.0.0.1"
port:
description: "The port ZAP is bound to."
default: "8080"
components:
securitySchemes:
apiKeyHeader:
type: "apiKey"
name: "X-ZAP-API-Key"
in: "header"
apiKeyQuery:
type: "apiKey"
name: "apikey"
in: "query"
responses:
ErrorOther:
description: "Error of OTHER endpoints."
content:
'*/*': {}
ErrorJson:
description: "Error of JSON endpoints."
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorJson"
schemas:
ErrorJson:
type: "object"
required:
- "code"
- "message"
properties:
code:
type: "string"
message:
type: "string"
detail:
type: "string"
security:
- {}
- apiKeyHeader: []
- apiKeyQuery: []
paths:
/JSON/accessControl/action/scan/:
get:
description: "Starts an Access Control scan with the given context ID and user\
\ ID. (Optional parameters: user ID for Unauthenticated user, boolean identifying\
\ whether or not Alerts are raised, and the Risk level for the Alerts.) [This\
\ assumes the Access Control rules were previously established via ZAP gui\
\ and the necessary Context exported/imported.]"
operationId: "accessControlActionScan"
tags:
- "accessControl"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextId"
in: "query"
required: true
description: ""
schema:
type: "string"
- name: "userId"
in: "query"
required: true
description: ""
schema:
type: "string"
- name: "scanAsUnAuthUser"
in: "query"
description: ""
schema:
type: "string"
- name: "raiseAlert"
in: "query"
description: ""
schema:
type: "string"
- name: "alertRiskLevel"
in: "query"
description: ""
schema:
type: "string"
/JSON/accessControl/action/writeHTMLreport/:
get:
description: "Generates an Access Control report for the given context ID and\
\ saves it based on the provided filename (path). "
operationId: "accessControlActionWriteHTMLreport"
tags:
- "accessControl"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextId"
in: "query"
required: true
description: ""
schema:
type: "string"
- name: "fileName"
in: "query"
required: true
description: ""
schema:
type: "string"
/JSON/accessControl/view/getScanProgress/:
get:
description: "Gets the Access Control scan progress (percentage integer) for\
\ the given context ID."
operationId: "accessControlViewGetScanProgress"
tags:
- "accessControl"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextId"
in: "query"
required: true
description: ""
schema:
type: "string"
/JSON/accessControl/view/getScanStatus/:
get:
description: "Gets the Access Control scan status (description string) for the\
\ given context ID."
operationId: "accessControlViewGetScanStatus"
tags:
- "accessControl"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextId"
in: "query"
required: true
description: ""
schema:
type: "string"
/JSON/acsrf/action/addOptionToken/:
get:
description: "Adds an anti-CSRF token with the given name, enabled by default"
operationId: "acsrfActionAddOptionToken"
tags:
- "acsrf"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "String"
in: "query"
required: true
description: ""
schema:
type: "string"
/JSON/acsrf/action/removeOptionToken/:
get:
description: "Removes the anti-CSRF token with the given name"
operationId: "acsrfActionRemoveOptionToken"
tags:
- "acsrf"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "String"
in: "query"
required: true
description: ""
schema:
type: "string"
/JSON/acsrf/action/setOptionPartialMatchingEnabled/:
get:
description: "Define if ZAP should detect CSRF tokens by searching for partial\
\ matches."
operationId: "acsrfActionSetOptionPartialMatchingEnabled"
tags:
- "acsrf"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Boolean"
in: "query"
required: true
description: ""
schema:
type: "boolean"
/OTHER/acsrf/other/genForm/:
get:
description: "Generate a form for testing lack of anti-CSRF tokens - typically\
\ invoked via ZAP"
operationId: "acsrfOtherGenForm"
tags:
- "acsrf"
responses:
default:
$ref: "#/components/responses/ErrorOther"
parameters:
- name: "hrefId"
in: "query"
required: true
description: "Define which request will be used"
schema:
type: "string"
- name: "actionUrl"
in: "query"
description: "Define the action URL to be used in the generated form"
schema:
type: "string"
/JSON/acsrf/view/optionPartialMatchingEnabled/:
get:
description: "Define if ZAP should detect CSRF tokens by searching for partial\
\ matches"
operationId: "acsrfViewOptionPartialMatchingEnabled"
tags:
- "acsrf"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/acsrf/view/optionTokensNames/:
get:
description: "Lists the names of all anti-CSRF tokens"
operationId: "acsrfViewOptionTokensNames"
tags:
- "acsrf"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/action/addAllowedResource/:
get:
description: "Adds an allowed resource."
operationId: "ajaxSpiderActionAddAllowedResource"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "regex"
in: "query"
required: true
description: "The regular expression of the allowed resource."
schema:
type: "string"
- name: "enabled"
in: "query"
description: "If the allowed resource should be enabled or not."
schema:
type: "string"
/JSON/ajaxSpider/action/addExcludedElement/:
get:
description: "Adds an excluded element to a context."
operationId: "ajaxSpiderActionAddExcludedElement"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextName"
in: "query"
required: true
description: "The name of the context."
schema:
type: "string"
- name: "description"
in: "query"
required: true
description: "The description of the excluded element."
schema:
type: "string"
- name: "element"
in: "query"
required: true
description: "The element to exclude."
schema:
type: "string"
- name: "xpath"
in: "query"
description: "The XPath of the element."
schema:
type: "string"
- name: "text"
in: "query"
description: "The text of the element."
schema:
type: "string"
- name: "attributeName"
in: "query"
description: "The attribute name of the element."
schema:
type: "string"
- name: "attributeValue"
in: "query"
description: "The attribute value of the element."
schema:
type: "string"
- name: "enabled"
in: "query"
description: "The enabled state, true or false."
schema:
type: "string"
/JSON/ajaxSpider/action/modifyExcludedElement/:
get:
description: "Modifies an excluded element of a context."
operationId: "ajaxSpiderActionModifyExcludedElement"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextName"
in: "query"
required: true
description: "The name of the context."
schema:
type: "string"
- name: "description"
in: "query"
required: true
description: "The description of the excluded element."
schema:
type: "string"
- name: "element"
in: "query"
required: true
description: "The element to exclude."
schema:
type: "string"
- name: "descriptionNew"
in: "query"
description: "The new description."
schema:
type: "string"
- name: "xpath"
in: "query"
description: "The XPath of the element."
schema:
type: "string"
- name: "text"
in: "query"
description: "The text of the element."
schema:
type: "string"
- name: "attributeName"
in: "query"
description: "The attribute name of the element."
schema:
type: "string"
- name: "attributeValue"
in: "query"
description: "The attribute value of the element."
schema:
type: "string"
- name: "enabled"
in: "query"
description: "The enabled state, true or false."
schema:
type: "string"
/JSON/ajaxSpider/action/removeAllowedResource/:
get:
description: "Removes an allowed resource."
operationId: "ajaxSpiderActionRemoveAllowedResource"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "regex"
in: "query"
required: true
description: "The regular expression of the allowed resource."
schema:
type: "string"
/JSON/ajaxSpider/action/removeExcludedElement/:
get:
description: "Removes an excluded element from a context."
operationId: "ajaxSpiderActionRemoveExcludedElement"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextName"
in: "query"
required: true
description: "The name of the context."
schema:
type: "string"
- name: "description"
in: "query"
required: true
description: "The description of the excluded element."
schema:
type: "string"
/JSON/ajaxSpider/action/scan/:
get:
description: "Runs the AJAX Spider against a given target."
operationId: "ajaxSpiderActionScan"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "url"
in: "query"
description: "The starting URL (needs to include the 'scheme')."
schema:
type: "string"
- name: "inScope"
in: "query"
description: "A boolean (true/false) indicating whether or not the scan should\
\ be restricted to 'inScope' only resources (default value is false)."
schema:
type: "string"
- name: "contextName"
in: "query"
description: "The name for any defined context. If the value does not match\
\ a defined context then an error will occur."
schema:
type: "string"
- name: "subtreeOnly"
in: "query"
description: "A boolean (true/false) indicating whether or not the crawl should\
\ be constrained to a specific path (default value is false)."
schema:
type: "string"
/JSON/ajaxSpider/action/scanAsUser/:
get:
description: "Runs the AJAX Spider from the perspective of a User of the web\
\ application."
operationId: "ajaxSpiderActionScanAsUser"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextName"
in: "query"
required: true
description: "The name for any defined context. If the value does not match\
\ a defined context then an error will occur."
schema:
type: "string"
- name: "userName"
in: "query"
required: true
description: "The name of the user to be used when crawling. The \"userName\"\
\ should be previously defined on the context configuration."
schema:
type: "string"
- name: "url"
in: "query"
description: "The starting URL (needs to include the 'scheme')."
schema:
type: "string"
- name: "subtreeOnly"
in: "query"
description: "A boolean (true/false) indicating whether or not the crawl should\
\ be constrained to a specific path (default value is false)."
schema:
type: "string"
/JSON/ajaxSpider/action/setEnabledAllowedResource/:
get:
description: "Sets whether or not an allowed resource is enabled."
operationId: "ajaxSpiderActionSetEnabledAllowedResource"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "regex"
in: "query"
required: true
description: "The regular expression of the allowed resource."
schema:
type: "string"
- name: "enabled"
in: "query"
required: true
description: "If the allowed resource should be enabled or not."
schema:
type: "string"
/JSON/ajaxSpider/action/setOptionBrowserId/:
get:
description: "Sets the configuration of the AJAX Spider to use one of the supported\
\ browsers."
operationId: "ajaxSpiderActionSetOptionBrowserId"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "String"
in: "query"
required: true
description: "The name of the browser to be used by the AJAX Spider. (See the\
\ Selenium add-on help for a list of supported browsers.)"
schema:
type: "string"
/JSON/ajaxSpider/action/setOptionClickDefaultElems/:
get:
description: "Sets whether or not the the AJAX Spider will only click on the\
\ default HTML elements."
operationId: "ajaxSpiderActionSetOptionClickDefaultElems"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Boolean"
in: "query"
required: true
description: "A boolean (true/false) indicating if only default elements such\
\ as 'a' 'button' 'input' should be clicked (default is true)."
schema:
type: "boolean"
/JSON/ajaxSpider/action/setOptionClickElemsOnce/:
get:
description: "When enabled, the crawler attempts to interact with each element\
\ (e.g., by clicking) only once."
operationId: "ajaxSpiderActionSetOptionClickElemsOnce"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Boolean"
in: "query"
required: true
description: "A boolean (true/false) indicating whether or not the AJAX Spider\
\ should only click on elements once. If this is set to false, the crawler\
\ will attempt to click multiple times; which is more rigorous but may take\
\ considerably more time (default is true)."
schema:
type: "boolean"
/JSON/ajaxSpider/action/setOptionEventWait/:
get:
description: "Sets the time to wait after an event (in milliseconds). For example:\
\ the wait delay after the cursor hovers over an element, in order for a menu\
\ to display, etc."
operationId: "ajaxSpiderActionSetOptionEventWait"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Integer"
in: "query"
required: true
description: "The time that the AJAX Spider should wait for each event (default\
\ is 1000 milliseconds)."
schema:
type: "integer"
/JSON/ajaxSpider/action/setOptionMaxCrawlDepth/:
get:
description: "Sets the maximum depth that the crawler can reach."
operationId: "ajaxSpiderActionSetOptionMaxCrawlDepth"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Integer"
in: "query"
required: true
description: "The maximum depth that the crawler should explore (zero means\
\ unlimited depth, default is 10)."
schema:
type: "integer"
/JSON/ajaxSpider/action/setOptionMaxCrawlStates/:
get:
description: "Sets the maximum number of states that the crawler should crawl."
operationId: "ajaxSpiderActionSetOptionMaxCrawlStates"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Integer"
in: "query"
required: true
description: "The maximum number of states that the AJAX Spider should explore\
\ (zero means unlimited crawl states, default is 0)"
schema:
type: "integer"
/JSON/ajaxSpider/action/setOptionMaxDuration/:
get:
description: "The maximum time that the crawler is allowed to run."
operationId: "ajaxSpiderActionSetOptionMaxDuration"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Integer"
in: "query"
required: true
description: "The maximum amount of time that the AJAX Spider is allowed to\
\ run (zero means unlimited running time, default is 60 minutes)."
schema:
type: "integer"
/JSON/ajaxSpider/action/setOptionNumberOfBrowsers/:
get:
description: "Sets the number of windows to be used by AJAX Spider."
operationId: "ajaxSpiderActionSetOptionNumberOfBrowsers"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Integer"
in: "query"
required: true
description: "The number of windows that the AJAX Spider can use. The more windows,\
\ the faster the process will be. However, more windows also means greater\
\ resource usage (CPU, Memory, etc), and could lead to concurrency issues\
\ depending on the app being explored (default is 1)."
schema:
type: "integer"
/JSON/ajaxSpider/action/setOptionRandomInputs/:
get:
description: "When enabled, inserts random values into form fields."
operationId: "ajaxSpiderActionSetOptionRandomInputs"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Boolean"
in: "query"
required: true
description: "A boolean (true/false) indicating whether or not random values\
\ should be use in form fields. Otherwise, empty values are submitted (default\
\ is true)."
schema:
type: "boolean"
/JSON/ajaxSpider/action/setOptionReloadWait/:
get:
description: "Sets the time to wait after the page is loaded before interacting\
\ with it."
operationId: "ajaxSpiderActionSetOptionReloadWait"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "Integer"
in: "query"
required: true
description: "The number of milliseconds the AJAX Spider should wait after a\
\ page is loaded (default is 1000)."
schema:
type: "integer"
/JSON/ajaxSpider/action/stop/:
get:
description: "Stops the AJAX Spider."
operationId: "ajaxSpiderActionStop"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/allowedResources/:
get:
description: "Gets the allowed resources. The allowed resources are always fetched\
\ even if out of scope, allowing to include necessary resources (e.g. scripts)\
\ from 3rd-parties."
operationId: "ajaxSpiderViewAllowedResources"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/excludedElements/:
get:
description: "Gets the excluded elements. The excluded elements are not clicked\
\ during crawling, for example, to prevent logging out."
operationId: "ajaxSpiderViewExcludedElements"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextName"
in: "query"
required: true
description: "The name of the context."
schema:
type: "string"
/JSON/ajaxSpider/view/fullResults/:
get:
description: "Gets the full crawled content detected by the AJAX Spider. Returns\
\ a set of values based on 'inScope' URLs, 'outOfScope' URLs, and 'errors'\
\ encountered during the last/current run of the AJAX Spider."
operationId: "ajaxSpiderViewFullResults"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/numberOfResults/:
get:
description: "Gets the number of resources found."
operationId: "ajaxSpiderViewNumberOfResults"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionBrowserId/:
get:
description: "Gets the configured browser to use for crawling."
operationId: "ajaxSpiderViewOptionBrowserId"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionClickDefaultElems/:
get:
description: "Gets the configured value for 'Click Default Elements Only', HTML\
\ elements such as 'a', 'button', 'input', all associated with some action\
\ or links on the page."
operationId: "ajaxSpiderViewOptionClickDefaultElems"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionClickElemsOnce/:
get:
description: "Gets the value configured for the AJAX Spider to know if it should\
\ click on the elements only once."
operationId: "ajaxSpiderViewOptionClickElemsOnce"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionEventWait/:
get:
description: "Gets the time to wait after an event (in milliseconds). For example:\
\ the wait delay after the cursor hovers over an element, in order for a menu\
\ to display, etc."
operationId: "ajaxSpiderViewOptionEventWait"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionMaxCrawlDepth/:
get:
description: "Gets the configured value for the max crawl depth."
operationId: "ajaxSpiderViewOptionMaxCrawlDepth"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionMaxCrawlStates/:
get:
description: "Gets the configured value for the maximum crawl states allowed."
operationId: "ajaxSpiderViewOptionMaxCrawlStates"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionMaxDuration/:
get:
description: "Gets the configured max duration of the crawl, the value is in\
\ minutes."
operationId: "ajaxSpiderViewOptionMaxDuration"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionNumberOfBrowsers/:
get:
description: "Gets the configured number of browsers to be used."
operationId: "ajaxSpiderViewOptionNumberOfBrowsers"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionRandomInputs/:
get:
description: "Gets if the AJAX Spider will use random values in form fields\
\ when crawling, if set to true."
operationId: "ajaxSpiderViewOptionRandomInputs"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/optionReloadWait/:
get:
description: "Gets the configured time to wait after reloading the page, this\
\ value is in milliseconds."
operationId: "ajaxSpiderViewOptionReloadWait"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/ajaxSpider/view/results/:
get:
description: "Gets the current results of the crawler."
operationId: "ajaxSpiderViewResults"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "start"
in: "query"
description: "The position (or offset) within the results to use as a starting\
\ position for the information returned."
schema:
type: "string"
- name: "count"
in: "query"
description: "The number of results to return."
schema:
type: "string"
/JSON/ajaxSpider/view/status/:
get:
description: "Gets the current status of the crawler. Actual values are Stopped\
\ and Running."
operationId: "ajaxSpiderViewStatus"
tags:
- "ajaxSpider"
responses:
default:
$ref: "#/components/responses/ErrorJson"
/JSON/alert/action/addAlert/:
get:
description: "Add an alert associated with the given message ID, with the provided\
\ details. (The ID of the created alert is returned.)"
operationId: "alertActionAddAlert"
tags:
- "alert"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "messageId"
in: "query"
required: true
description: "The ID of the message to which the alert should be associated."
schema:
type: "string"
- name: "name"
in: "query"
required: true
description: "The name of the alert."
schema:
type: "string"
- name: "riskId"
in: "query"
required: true
description: "The numeric risk representation ('0 - Informational' through '3\
\ - High')."
schema:
type: "string"
- name: "confidenceId"
in: "query"
required: true
description: "The numeric confidence representation ('1 - Low' through '3 -\
\ High' [user set values '0 - False Positive', and '4 - User Confirmed' are\
\ also available])."
schema:
type: "string"
- name: "description"
in: "query"
required: true
description: "The description to be set to the alert."
schema:
type: "string"
- name: "param"
in: "query"
description: "The name of the parameter applicable to the alert."
schema:
type: "string"
- name: "attack"
in: "query"
description: "The attack (ex: injected string) used by the scan rule."
schema:
type: "string"
- name: "otherInfo"
in: "query"
description: "Other information about the alert or test."
schema:
type: "string"
- name: "solution"
in: "query"
description: "The solution for the alert."
schema:
type: "string"
- name: "references"
in: "query"
description: "The reference details for the alert."
schema:
type: "string"
- name: "evidence"
in: "query"
description: "The evidence associated with the alert."
schema:
type: "string"
- name: "cweId"
in: "query"
description: "The CWE identifier associated with the alert."
schema:
type: "string"
- name: "wascId"
in: "query"
description: "The WASC identifier associated with the alert."
schema:
type: "string"
/JSON/alert/action/deleteAlert/:
get:
description: "Deletes the alert with the given ID. "
operationId: "alertActionDeleteAlert"
tags:
- "alert"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "id"
in: "query"
required: true
description: ""
schema:
type: "string"
/JSON/alert/action/deleteAlerts/:
get:
description: "Deletes all the alerts optionally filtered by URL which fall within\
\ the Context with the provided name, risk, or base URL."
operationId: "alertActionDeleteAlerts"
tags:
- "alert"
responses:
default:
$ref: "#/components/responses/ErrorJson"
parameters:
- name: "contextName"
in: "query"
description: "The name of the Context for which the alerts should be deleted."
schema:
type: "string"
- name: "baseurl"
in: "query"
description: "The highest URL in the Sites tree under which alerts should be\
\ deleted."