We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0228b22 commit b767364Copy full SHA for b767364
README.md
@@ -146,6 +146,7 @@ fun Route.ordersRouting() {
146
147
### Responses
148
Defining response schemas and their corresponding HTTP status codes are done via `@KtorResponds` annotation on an endpoint.
149
+`Nothing` is treated specially and will result in empty response body.
150
151
```kotlin
152
@GenerateOpenApi
@@ -154,6 +155,7 @@ fun Route.ordersRouting() {
154
155
@KtorResponds(
156
[
157
ResponseEntry("200", Order::class, description = "Created order"),
158
+ ResponseEntry("204", Nothing::class),
159
ResponseEntry("400", ErrorResponseSample::class, description = "Invalid order payload")
160
]
161
)
0 commit comments