Skip to main content

Module openapi

Module openapi 

Source
Available on crate feature openapi only.
Expand description

Route to handlers based on HTTP methods with automatic OpenAPI generation support.

This contains ApiMethodRouter, a core construct for building APIs that can be automatically described using OpenAPI.

Structs§

ApiMethodRouter
A version of MethodRouter that supports OpenAPI.

Functions§

api_connect
Create a new ApiMethodRouter with a CONNECT handler.
api_delete
Create a new ApiMethodRouter with a DELETE handler.
api_get
Create a new ApiMethodRouter with a GET handler.
api_head
Create a new ApiMethodRouter with a HEAD handler.
api_options
Create a new ApiMethodRouter with a OPTIONS handler.
api_patch
Create a new ApiMethodRouter with a PATCH handler.
api_post
Create a new ApiMethodRouter with a POST handler.
api_put
Create a new ApiMethodRouter with a PUT handler.
api_trace
Create a new ApiMethodRouter with a TRACE handler.