-
Notifications
You must be signed in to change notification settings - Fork 39
V2 Request
Lukas Ruegner edited this page Jun 2, 2024
·
2 revisions
Information about a request is added in the request
-block of a route-documentation.
get("example", {
// ...
request {
pathParameter<String>("pathParam")
queryParameter<String>("queryParam")
headerParameter<String>("headerParam")
body<String>()
}
}) {
// handle request...
}
-
pathParameter<Type>("name")
- documentation of a path-parameter of the given type with the given name. See Parameters for more information. -
queryParameter<Type>("name")
- documentation of a query-parameter of the given type with the given name. See Parameters for more information. -
headerParameter<Type>("name")
- documentation of a header-parameter of the given type with the given name. See Parameters for more information. -
body<Type>
- documentation of the request body of the given type. See Request and Response Bodies for more information.
More information:
- Getting Started
- Configuration
- Documenting Routes
- Multiple Api-Specs
- Examples
- Changelog
Documentation for previous versions: