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

Safe HaskellNone

Rest.Gen.Docs.Generate

Synopsis

Documentation

data DocsContext Source

Information about the context in which a resource is contained

cls :: String -> AttributeSource

Helper functions for generating HTML

resourcesInfo :: DocsContext -> ApiResource -> HtmlSource

Recursively generate information for a resource structure

resourceInfo :: DocsContext -> ApiResource -> HtmlSource

Generate information for one resource

dataDescriptions :: String -> [DataDescription] -> HtmlSource

Generate information for input/output data structure

mkCode :: String -> String -> String -> HtmlSource

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