File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/kotlin-misk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ import misk.web.RequestBody
2626import misk.web.RequestContentType
2727import misk.web.RequestHeader
2828import misk.web.ResponseContentType
29- import misk.web.mediatype.MediaTypes{ {#actionImports} }
30- { {{.} }}{ {/actionImports} }
29+ import misk.web.mediatype.MediaTypes
30+ { {#actionImports} }
31+ { {{.} }}
32+ { {/actionImports} }
3133{ {#imports} }import { {import} }
3234{ {/imports} }
3335
@@ -43,8 +45,10 @@ class {{classname}}Action @Inject constructor(
4345 @{ {httpMethod} }("{ {{actionPathPrefix} }}{ {path} }")
4446 @Description("{ {{summary} }}"){ {#hasConsumes} }
4547 { {{actionRequestContentType} }}{ {#consumes} }{ {{actionRequestContentTypePrefix} }}{ {{mediaType} }}{ {^-last} }, { {/-last} }{ {/consumes} }){ {/hasConsumes} }{ {#hasProduces} }
46- @ResponseContentType({ {#produces} }MediaTypes.{ {{mediaType} }}{ {^-last} }, { {/-last} }{ {/produces} }){ {/hasProduces} }{ {#actionAnnotations} }
47- { {{.} }}{ {/actionAnnotations} }
48+ @ResponseContentType({ {#produces} }MediaTypes.{ {{mediaType} }}{ {^-last} }, { {/-last} }{ {/produces} }){ {/hasProduces} }
49+ { {#actionAnnotations} }
50+ { {{.} }}
51+ { {/actionAnnotations} }
4852 fun { {operationId} }({ {#allParams} }
4953 { {> queryParams} }{ {> pathParams} }{ {> headerParams} }{ {> cookieParams} }{ {> bodyParams} }{ {> formParams} }{ {^-last} }, { {/-last} }{ {/allParams} }){ {#returnType} }: { {{returnType} }}{ {/returnType} } {
5054 TODO()
You can’t perform that action at this time.
0 commit comments