ReviewBoard-0.2.1: Haskell bindings to ReviewBoardSource codeContentsIndex
ReviewBoard.Request
Portabilityportable
Stabilityexperimental
Maintaineradam.smyczek@gmail.com
Contents
URL path elements
Types
Request methods
Util types and functions
Description

This module provides util functions to build ReviewBoard requests. The current implementation for this small project is maybe an overkill, but it provides constants for URL path elements and simplifies building API calls.

The call format is method (path1 . path2 . path3) [form var] , for example the API GET call to /api/json/reviewrequests/5/delete/ can be executed by calling

 get (reviewrequests (Just 5) . delete) []

The current approach to handle request may change if I find a way to automatically generate API calls from ReviewBoard code.

Synopsis
data RRField
= STATUS
| PUBLIC
| SUMMARY
| DESCRIPTION
| TESTING_DONE
| BUGS_CLOSED
| BRANCH
| TARGET_GROUPS
| TARGET_PEOPLE
get :: (UrlPath -> UrlPath) -> [FormVar] -> RBAction RBResponse
post :: (UrlPath -> UrlPath) -> [FormVar] -> RBAction RBResponse
type UrlPath = String
mkup :: String -> UrlPath -> UrlPath
mkpup :: Show a => String -> Maybe a -> UrlPath -> UrlPath
URL path elements
Types
data RRField Source
Review request field type.
Constructors
STATUS
PUBLIC
SUMMARY
DESCRIPTION
TESTING_DONE
BUGS_CLOSED
BRANCH
TARGET_GROUPS
TARGET_PEOPLE
show/hide Instances
Request methods
get :: (UrlPath -> UrlPath) -> [FormVar] -> RBAction RBResponseSource
GET request method
post :: (UrlPath -> UrlPath) -> [FormVar] -> RBAction RBResponseSource
GET request method
Util types and functions
type UrlPath = StringSource
Synonym for URL path element
mkup :: String -> UrlPath -> UrlPathSource
(MaKe UrlPath) Default URL element path maker
mkpup :: Show a => String -> Maybe a -> UrlPath -> UrlPathSource
Make path element with a parameter of type a e.g. reviewrequests (Just 5) => "reviewrequests/5/"
Produced by Haddock version 2.3.0