webgear-openapi-1.1.1: Composable, type-safe library to build HTTP API servers
Safe HaskellSafe-Inferred
LanguageHaskell2010

WebGear.OpenApi

Description

Main module for WebGear OpenAPI support.

Import this module to get all required types and functions for generating OpenAPI documentation. Alternatively, import individual modules under WebGear.OpenApi.

Typical usage to generate OpenAPI:

 import WebGear.OpenApi
 import Data.OpenApi (OpenApi)

 myHandler :: Handler h m => RequestHandler h '[]
 myHandler = ....

 documentation :: OpenApi
 documentation = toOpenApi myHandler

Documentation