rest-gen-0.12: Documentation and client generation from rest definition.

Safe HaskellNone
LanguageHaskell98

Rest.Gen.Docs.Generate

Synopsis

Documentation

data DocsContext Source

Information about the context in which a resource is contained

cls :: String -> Attribute Source

Helper functions for generating HTML

resourcesInfo :: DocsContext -> ApiResource -> Html Source

Recursively generate information for a resource structure

resourceInfo :: DocsContext -> ApiResource -> Html Source

Generate information for one resource

dataDescriptions :: String -> [DataDescription] -> Html Source

Generate information for input/output data structure

mkCode :: String -> String -> String -> Html Source

Helper function for setting the right attributes to make something collapsible. The javascript prt can be found in docs.js