Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Repository files navigation

Generated Specs

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.

Generating Server Code

Setup

  • Install OpenAPI Generator
npm install @openapitools/openapi-generator-cli -g

Usage

  • 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.py

This will allow our API Extractor to clone the repository and run the API Extraction against it using the given config.

About

Generated server stubs using OpenAPI generator for well known public APIs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages