Tutorial: Binding to existing OpenAPI spec
Creating a bound controller
@BindController()
class PetstoreController {}Binding a method to an existing operation
{
...
"paths": {
"/pets/{petId}": {
"get": {
"summary": "Info for a specific pet",
"operationId": "showPetById",
"tags": ["pets"],
"parameters": [ ... ],
"responses": { ... }
}
}
}
}Binding parameters
Binding the request body
Binding user authorization
Last updated