Our great sponsors
-
kotlin-spring-boot-open-api-example
Example of a Spring Boot-based Kotlin project that is partially generated based on an OpenAPI specification
-
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You can find the full project (including target) at https://github.com/BjornvdLaan/kotlin-spring-boot-open-api-example.
An overview of all configuration options is found here. I would like to highlight three options where I made a design decision:
We start by creating a fresh Spring Boot project using the Spring Initializr. We tell it to be a Maven project using Kotlin and packaged as a jar. We also add the Spring Web dependency because the generated code depends on this dependency.
Related posts
- OpenAPI Generator v7.3.0 has new generators for Rust, Kotlin, Scala and Java
- Stop creating HTTP clients manually - Part I
- Building a world-class suite of SDKs is easy with Speakeasy
- Sharing EF data access project DLL vs NuGet vs ?
- OpenAPI Generator v7.0.1 released with some enhancements in the PowerShell client generator