swagger-0.2: Implementation of swagger data model

Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Build.Resource

Contents

Synopsis

Documentation

resources :: Text -> ResourcesBuilder -> Resources Source

Construct a resource listing object given a swagger version and some resource objects.

api :: Text -> ResourceBuilder -> ResourcesBuilder Source

Add one resource object to a resource listing given a path and some resource specific values.

info :: Text -> InfoBuilder -> ResourcesBuilder Source

Set the info object of a resource listing object given a title and other infor object specific values.

authorisation :: Text -> Authorisation -> ResourcesBuilder Source

Add a authorisation object to a resource listing with the given name.

end :: Monad m => m () Source

If cases where no build steps are provided but a builder is required end can be used, e.g. defineModel "Foo" end

builder types

type InfoBuilder = State InfoSt () Source