rest-gen-0.9.0.2: 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

Constructors

DocsContext 

Fields

rootUrl :: String
 
contextVersion :: Version
 
templates :: String
 

Instances

writeDocs :: DocsContext -> Router m s -> String -> IO ()Source

cls :: String -> AttributeSource

Helper functions for generating HTML

cdiv :: String -> Html -> HtmlSource

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