webmachine resource that handles the version endpoint.
Authors: Edwin Fine (efine@silentcircle.com
).
See https://github.com/basho/webmachine/wiki/Resource-Functions
for a
description of the resource functions used in this module.
ctx() = #ctx{}
Context record.
allowed_methods/2 | |
content_types_provided/2 | |
init/1 | |
resource_exists/2 | |
to_json/2 |
allowed_methods(ReqData::sc_push_wm_helper:wrq(), Ctx::ctx()) -> {list(), sc_push_wm_helper:wrq(), ctx()}
content_types_provided(ReqData::sc_push_wm_helper:wrq(), Ctx::ctx()) -> {list(), sc_push_wm_helper:wrq(), ctx()}
init(Config::sc_push_wm_helper:config()) -> {sc_push_wm_helper:debug_info(), ctx()}
resource_exists(ReqData::sc_push_wm_helper:wrq(), Ctx::ctx()) -> sc_push_wm_helper:wbool_ret()
to_json(ReqData::sc_push_wm_helper:wrq(), Ctx::ctx()) -> {sc_push_wm_helper:json(), sc_push_wm_helper:wrq(), ctx()}