For convenience, FireTail provides a command-line interface (CLI). This interface aims to be a starting point in developing or testing OpenAPI specifications with FireTail.
The available commands are:
All commands can run with -h or –help to list more information.
The subcommand run of FireTail’s CLI makes it easy to run OpenAPI specifications directly even before any operation handler function gets implemented. This allows you to verify and inspect how your API will work with FireTail.
To run your specification, execute in your shell:
This command will tell FireTail to run the your_api.yaml specification file attaching a stub operation (--stub) to the unavailable operations/functions of your API and in debug mode (--debug).
The basic usage of this command is:
Where:
There are more options available for the run command, for a full list run:
You can run a simple server that returns example responses on every request. The example responses must be defined in the examples response property of the OpenAPI specification. Your API specification file is not required to have any operationId.