openapi-generator/docs/generators/kotlin-server.md
Jim Schubert 0e1ce6bb63
[docs] Custom template clarifications and other minor enhancements (#4167)
* [docs] Updating docsite outputs to be browsable on Github as well

* Fix links to other files
   Suffix `.md` was needed to make links works

* [docs] Add clarification to differences between customization and templating docs

* [docs] Collapsible side bar, scroll to top, minor enhancements
2019-10-16 18:04:44 -04:00

1.7 KiB

title sidebar_label
Config Options for kotlin-server kotlin-server
Option Description Values Default
sourceFolder source folder for generated code src/main/kotlin
packageName Generated artifact package name. org.openapitools.server
apiSuffix suffix for api classes Api
groupId Generated artifact package's organization (i.e. maven groupId). org.openapitools
artifactId Generated artifact id (name of jar). kotlin-server
artifactVersion Generated artifact's package version. 1.0.0
enumPropertyNaming Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original' camelCase
serializationLibrary What serialization library to use: 'moshi' (default), or 'gson' moshi
parcelizeModels toggle "@Parcelize" for generated models null
serializableModel boolean - toggle "implements Serializable" for generated models null
library library template (sub-template)
ktor
ktor framework
ktor
featureAutoHead Automatically provide responses to HEAD requests for existing routes that have the GET verb defined. true
featureConditionalHeaders Avoid sending content if client already has same content, by checking ETag or LastModified properties. false
featureHSTS Avoid sending content if client already has same content, by checking ETag or LastModified properties. true
featureCORS Ktor by default provides an interceptor for implementing proper support for Cross-Origin Resource Sharing (CORS). See enable-cors.org. false
featureCompression Adds ability to compress outgoing content using gzip, deflate or custom encoder and thus reduce size of the response. true