context() = #context{}
| content_types_provided/2 | Return available content types. |
| forbidden/2 | Validate origin. |
| init/1 | Get partition list at the start of the request. |
| is_authorized/2 | Handle authorization. |
| routes/0 | Route handling. |
| service_available/2 | Determine if it's available. |
| to_json/2 | Return a list of partitions. |
content_types_provided(ReqData::wrq:reqdata(), Context::context()) -> {[{ContentType::string(), HandlerFunction::atom()}], wrq:reqdata(), context()}
Return available content types.
forbidden(ReqData::wrq:reqdata(), Context::context()) -> {boolean(), wrq:reqdata(), context()}
Validate origin.
init(X1::list()) -> {ok, context()}
Get partition list at the start of the request.
is_authorized(ReqData::wrq:reqdata(), Context::context()) -> {true | string(), wrq:reqdata(), context()}
Handle authorization.
routes() -> [webmachine_dispatcher:matchterm()]
Route handling.
service_available(ReqData::wrq:reqdata(), Context::context()) -> {boolean() | {halt, non_neg_integer()}, wrq:reqdata(), context()}
Determine if it's available.
to_json(ReqData::wrq:reqdata(), Context::context()) -> {iolist(), wrq:reqdata(), context()}
Return a list of partitions.
Generated by EDoc