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.
Last updated
Was this helpful?
Probe API generates the HTTP request corresponding to each API present in the API documentation of the Swagger/OpenAPI JSON and execute them.
Last updated
Was this helpful?
Was this helpful?
$ k2hackbot probe-api --help
--jsonUrl TEXT URL of the Swagger JSON
Eg. k2hackbot probe-api --jsonUrl https://api-
documentation.com
--jsonFilePath TEXT File path of the Swagger JSON
Eg. k2hackbot probe-api --jsonFilePath myfile.json
Note: It is mandatory to pass either --jsonUrl or
--jsonFilePath. In case if both the option is provided,
then --jsonUrl will be in effect as it has higher
priority compared to --jsonFilePath.
--baseUrl TEXT Base URL of the application.
Eg. k2hackbot probe-api --jsonUrl https://swagger-
json.com --baseUrl https://myapplication.com
--config FILE Read configuration from FILE.
--help Show this message and exit.k2hackbot probe-api --jsonUrl https://api-documentation.comk2hackbot probe-api --jsonFilePath myfile.jsonk2hackbot probe-api --jsonUrl https://swagger-json.com --baseUrl https://myapplication.comCLI > Environment > Configuration file > Default$ cat k2config.json
{
"jsonUrl": "https://swagger-json.com",
"baseUrl": "https://myapplication.com"
}k2hackbot probe-api --config k2config.json