Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module converts an API specified with the DSL into a JSON-encoded object so that it can be used in clients.
Synopsis
- apiAPI :: API
- extractAPI :: API -> Value
- convertAPI :: API -> APISpec
- unconvertAPI :: APISpec -> API
Documentation
extractAPI :: API -> Value Source #
Take an API spec and generate a JSON description of the API
convertAPI :: API -> APISpec Source #
unconvertAPI :: APISpec -> API Source #
Orphan instances
FromJSONWithErrs Thing Source # | Generate an API spec from the JSON |