-
Notifications
You must be signed in to change notification settings - Fork 34
V2 Request and Response Bodies
Lukas Ruegner edited this page Jun 2, 2024
·
2 revisions
Information about request and response bodies can be added in the respective blocks.
get("hello", {
request {
body<String>() {
// document request body
}
}
response {
HttpStatusCode.OK to {
body<String>() {
// document response body for "OK"
}
}
HttpStatusCode.NotFound to {
body<String>() {
// document response body for "Not Found"
}
}
}
}) {
// handle request...
}
More Information:
- Getting Started
- Configuration
- Documenting Routes
- Multiple Api-Specs
- Examples
- Changelog
Documentation for previous versions: