API Scan from CloudDefense UI

We support only swagger endpoints for API Scans for now, so if you have any APIs which aren't in swagger, we request you to create a swagger file using those APIs. To run API Scans follow these steps

Step 1: Access to API application

Login to your CloudDefense Instance and click on “Scan” then “Other”. After this select “API”

Step 2: Provide Swagger Details

We’ll use for testing here (Remember we need json as output not any html website, there is difference between swagger viewer and swagger json)
In App URL you need to provide (Base URL) example - In JSON Path provide full URL of JSON -

Step 3: Scan your API Key

Then click on “Run Scan” and your scan should start. API Scan from CloudDefense CLI guidelines are given below:
a) Install cdefense CLI in your Device using these steps -
b) Now run below command to run DAST Scan from CLI
cdefense api --api-key=<CLOUDDEFENSE_API_KEY> --url= --openapi-jsonurl= --project-name=example-api-scan --verbose