I borrowed some API Specs for notable APIs from this test base of API Specs. We use that to generate Server stubs using OpenAPI Generator. See the supported server generators here: https://openapi-generator.tech/docs/generators/#server-generators.
- Install OpenAPI Generator
npm install @openapitools/openapi-generator-cli -g- First, download all the swagger files. You can add to the script if you want.
./download.sh- Next, generate server code.
./generate-server-code.sh- Now generate the test case yaml file for internal usage and copy to the integration/test-cases-generated.yml file.
python3 ./generate_config.pyThis will allow our API Extractor to clone the repository and run the API Extraction against it using the given config.