Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
getVarsR :: Handler TypedContent Source #
Handle /variables GET
requests by returning the variables specified by
the filter and limit conditions specified in the query parameters, and
sorted by the field specified in the query parameters.
getVarR :: Text -> Handler TypedContent Source #
Handle /variables/{name} GET
requests for a single variable name by
returning the variable with that name, if it exists. If it does not exist, a
404 error response is returned.
postVarsR :: Handler () Source #
Handle /variables POST
requests by creating or updating multiple
variables at once. The variables to be updated are specified in the request
body, which is a JSON object whose keys are variable names and values are
the corresponding values. E.g.
{"a": 10, "b": -0.5}
putVarR :: Text -> Handler () Source #
Handle /variables/{name} PUT
requests by creating or updating a single
variable. The name of the variable to be updated is specified in the request
URL slug, and the value to assign to that variable is represented in the
request body as a JSON object of the form
{"value": 100}
deleteVarR :: Text -> Handler () Source #
Handle /variables/{name} DELETE
requests by deleting the variable with
the given name. If a variable with the given name doesn't exist, nothing
happens.