Crate poem_ext

source ·
Expand description

check test codecov Version dependency status

§poem-ext

Extension crate for poem/poem-openapi

Modules§

  • dbsea-orm
    Contains a middleware that automatically creates and manages a sea_orm::DatabaseTransaction for each incoming request. The transaction is automatically commit()ed if the endpoint returns a successful response or rollback()ed in case of an error.
  • Contains a middlware that automatically responds with an internal server error whenever the current thread is panicking.
  • Contains the PatchValue enum that can be used in PATCH endpoints to distinguish between values that should be updated and those that should remain unchanged.
  • Improve endpoint documentation by adding response schemas to the OpenAPI spec that might be returned by an authorization dependency, a bad request handler or other middlewares.
  • shield_mwshield
    Contains a middleware that prevents endpoint handlers from being canceled if the connection is closed.

Macros§