Skip to content

Latest commit

 

History

History

kotlin-spring

Generating server code with kotlin-spring

This example showcases the usage of OpenAPI generator kotlin-spring in a Spring Boot / Kotlin / Gradle application.

Generation is based on an OpenAPI spec file.

Current state

  • simple model
  • simple path
  • complex model
  • enums
  • inheritence
  • complex paths
  • header
  • references
  • security

Known issues

  • Inheritance of DTOs generated by the generator is incorrect.
    • Child-classes of LiteratureDTO are not extending LiteratureDTO, eg. BookDTO.
    • This is a known issue and is tracked here.

How-to run

./gradlew bootRun

How-to access auto-generated API documentation

How-to test

./gradlew test