OpenSourceProjects logo
openapi-generator logo

openapi-generatorOpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

26,147 stars
7,496 forks
Java
Apache-2.0
openapi-generator screenshot

openapi-generator

OpenAPI Generator automates the creation of API client libraries, server stubs, documentation, and configuration files directly from OpenAPI specifications (v2 and v3). It eliminates manual code generation and keeps your API implementations synchronized with your specification, saving development time and reducing errors.

Key Features

  • Multi-language SDK generation: Generate client libraries and server stubs for dozens of programming languages automatically
  • Documentation generation: Create API documentation and configuration files directly from your OpenAPI spec
  • OpenAPI v2 and v3 support: Works with both Swagger 2.0 and OpenAPI 3.0+ specifications
  • Customizable templates: Extend and customize code generation through template overrides

Use Cases

  • API client library generation: Automatically create SDKs for multiple programming languages from a single specification
  • Server stub generation: Quickly scaffold server implementations with routing and model definitions
  • API documentation automation: Generate up-to-date API docs that stay synchronized with your specification
  • Cross-team development: Enable frontend and backend teams to work independently from a shared API contract

Who Is It For

API developers, platform teams, and organizations that want to standardize API development workflows and reduce manual coding effort. It's ideal for teams managing multiple APIs or supporting SDKs across various programming languages.

Trending Open Source Projects