|
1 | 1 | --- |
2 | | -# This page was generated from the add-on. |
3 | 2 | title: Code Dx |
4 | | -type: userguide |
5 | | -weight: 1 |
6 | | -cascade: |
7 | | - addon: |
8 | | - id: codedx |
9 | | - version: 9.0.0 |
| 3 | +layout: redirect |
| 4 | +redirect: /docs/desktop/addons/software-risk-manager/ |
10 | 5 | --- |
11 | | - |
12 | | -# Code Dx |
13 | | - |
14 | | -The Code Dx add-on allows you to generate compatible reports and upload them to a Code Dx server. There are two options under the Report menu. |
15 | | - |
16 | | -## Code Dx: Upload Report |
17 | | - |
18 | | -This option will generate a report for you and upload it to a Code Dx server. Selecting it will prompt you for the Server URL and API Key. After populating the fields, click the refresh button to get a list of projects available to the API Key. Then click the Upload button to send results to the Code Dx server. |
19 | | - |
20 | | -## Code Dx: Generate XML Report |
21 | | - |
22 | | -This option will generate a standard XML report that includes the HTTP request and response data. |
23 | | - |
24 | | -# API |
25 | | - |
26 | | -## Actions |
27 | | - |
28 | | -### uploadReport |
29 | | - |
30 | | -Uploads a report to Code Dx. Note that uploading an empty report with no alerts will cause an Exception to be thrown as Code Dx won't be able to read it and will return a non-200 response. |
31 | | - |
32 | | -*Parameters* |
33 | | - |
34 | | -* filePath: Absolute path to the report file |
35 | | -* serverUrl: Code Dx server URL |
36 | | -* codeDxApiKey: Code Dx API Key |
37 | | -* projectId: Code Dx Project ID |
38 | | -* fingerprint: Optional SHA1 hash of an invalid certificate to make an exception for |
39 | | -* acceptPermanently: Optional boolean for if the exception should be stored permanently in a truststore file. |
40 | | - |
41 | | -*Returns* |
42 | | -"OK" if the report is uploaded successfully. |
43 | | - |
44 | | -### generateAndUpload |
45 | | - |
46 | | -Generates a Code Dx report, saves it to a temporary file, uploads to Code Dx, then deletes the file. |
47 | | - |
48 | | -*Parameters* |
49 | | - |
50 | | -* serverUrl: Code Dx server URL |
51 | | -* codeDxApiKey: Code Dx API Key |
52 | | -* projectId: Code Dx Project ID |
53 | | -* fingerprint: Optional SHA1 hash of an invalid certificate to make an exception for |
54 | | -* acceptPermanently: Optional boolean for if the exception should be stored permanently in a truststore file. |
55 | | - |
56 | | -*Returns* |
57 | | -"OK" if the report is uploaded successfully. |
58 | | -"EMPTY" if the generated report is empty. The report will not be uploaded to Code Dx. |
59 | | - |
60 | | -## Views |
61 | | - |
62 | | -### generateReport |
63 | | - |
64 | | -Generates an XML report with request and response data. |
65 | | - |
66 | | -*Returns* |
67 | | -An XML report String. |
0 commit comments