Probe API

Probe API generates the HTTP request corresponding to each API present in the API documentation of the Swagger/OpenAPI JSON and execute them.

Probe API

Probe API offers a convenient way to crawl APIs present in the supported API documentation.

Supported API Documentations

API Documentation

Version

Options

Option

Description

--jsonUrl

Provide the URL pointing to the Supported API documentation.

--jsonFilePath

Provide the file path containing the API documentation JSON.

--baseUrl

Provide the application URL in case the application server and the API documentation server are running on different machines.

--config

Provide the config file path. How to setup config file?

It is mandatory to pass either --jsonUrl or --jsonFilePath. In case if both the option are provided, then --jsonUrl will be in effect as it has higher priority compared to --jsonFilePath.

Commands

  • Command to display the help page:

  • Command to crawl all the APIs from the API documentation using JSON URL:

  • Command to crawl all the APIs from the API documentation using the JSON file:

  • Command to crawl API documentation when the Application server and the API documentation server are running on different machines:

Config File Setup

K2HackBot support two ways to define options:

  • CLI

  • Config File

The Hierarchy for reading config is as follows:

The config file can be created with any name but it MUST be in JSON format. Below is a sample config file for probe-api :

Command to run probe-api using the config file:

Last updated

Was this helpful?