Understanding the API Scan Configuration File
The following table describes the parameters available for use in the JSON configuration file.
Important! You must escape all double quotation marks that are inside double quotation marks in the JSON file. Use one backslash (\) in front of each quotation mark to escape. For example:
"Setting": "Value \"Value Text Inside Quotes\""
| Parameter | Description |
|---|---|
|
|
Points to the service definition location, which is a specific URL. Each API service uses a specific type of file, as follows:
The |
|
|
Indicates the type of API service being scanned. Possible values are:
|
|
|
Indicates the protocol used by the service, either Important! Schemes must be defined as a JSON array regardless of whether one or many values are used. The following are examples of arrays:
|
|
|
Indicates the host name or URL where the service is running. Tip: This is most likely the same as the API definition root URL. |
|
|
Primarily used for SOAP, allows filtering of operations by a specific version. Possible values are:
|
|
|
Specifies the directory path to the service. |
|
|
Optionally, identifies the authentication type, such as a transport bearer token. For more information about |
|
|
Optionally, specifies proxy settings.
|
preferredContentType
|
Optionally, sets the preferred content type of the request payload. If |
excludeOperations
|
Optionally, defines a deny list of operation IDs that should be excluded from the output, expressed as an array of operation IDs. Example:
|
includeOperations
|
Optionally, defines an allow list of operation IDs that should be included in the output, expressed as an array of operation IDs . Example:
|
parameterRules
|
Optionally, defines specific values for a parameter when the default value is not appropriate or when the parameter is not defined in the API definition. Example: A parameter, such as an authorization header which is not defined in the API definition, needs to be injected into every request. The property is expressed as an array of 'parameterRule' objects. The 'parameterRule' objects are described in Understanding Parameter Rule Objects. |
For sample JSON configuration files, see API Scan Configuration File Samples.