Skip to content

Generated server stubs using OpenAPI generator for well known public APIs

Notifications You must be signed in to change notification settings

api-extraction-examples/generated-server-stubs

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

Watchers

Forks

Releases

No releases published

Packages

No packages published