{"action":"opened","issue":{"url":"https://api.github.com/repos/jadahl/mod_restful/issues/30","repository_url":"https://api.github.com/repos/jadahl/mod_restful","labels_url":"https://api.github.com/repos/jadahl/mod_restful/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jadahl/mod_restful/issues/30/comments","events_url":"https://api.github.com/repos/jadahl/mod_restful/issues/30/events","html_url":"https://github.com/jadahl/mod_restful/issues/30","id":136035327,"number":30,"title":"mod_restful on ejabberd_16.01 - Problem starting the module mod_restful","user":{"login":"iharush","id":6792346,"avatar_url":"https://avatars.githubusercontent.com/u/6792346?v=3","gravatar_id":"","url":"https://api.github.com/users/iharush","html_url":"https://github.com/iharush","followers_url":"https://api.github.com/users/iharush/followers","following_url":"https://api.github.com/users/iharush/following{/other_user}","gists_url":"https://api.github.com/users/iharush/gists{/gist_id}","starred_url":"https://api.github.com/users/iharush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iharush/subscriptions","organizations_url":"https://api.github.com/users/iharush/orgs","repos_url":"https://api.github.com/users/iharush/repos","events_url":"https://api.github.com/users/iharush/events{/privacy}","received_events_url":"https://api.github.com/users/iharush/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-24T11:33:03Z","updated_at":"2016-02-24T11:33:03Z","closed_at":null,"body":"hi \r\ni am working on ejabberd_16.01 and i'm facing problems when adding mod_restful.\r\n\r\nejabberd.yml:\r\n```\r\nlisten:\r\n  -\r\n    port: 8088\r\n    ip: \"::\"\r\n    module: ejabberd_http\r\n    request_handlers:\r\n      \"/api\": mod_restful\r\n```\r\n```\r\nmodules:\r\n  mod_restful:\r\n    api:\r\n      - \r\n        path: [\"admin\"]\r\n        module: mod_restful_admin\r\n        params:\r\n          key: \"secret\" ## if you want to use basic auth, you need to remove this line\r\n          allowed_commands: [srg_create, srg_user_add, status, registered_users]\r\n\r\n```\r\n\r\nI get the following warning:\r\n\r\n`2016-02-24 11:18:21.997 [warning] <0.38.0>@gen_mod:validate_opts:255 module 'mod_restful' doesn't export mod_opt_type/1`\r\n\r\nand the following critical:\r\n\r\n```\r\n2016-02-24 11:18:22.001 [critical] <0.38.0>@gen_mod:start_module:106 Problem starting the module mod_restful for host <<\"MYHOSTNAME\">> \r\n options: [{api,\r\n               [[{path,[<<\"admin\">>]},\r\n                 {module,mod_restful_admin},\r\n                 {params,\r\n                     [{key,<<\"secret\">>},\r\n                      {allowed_commands,\r\n                          [srg_create,srg_user_add,status,\r\n                           registered_users]}]}]]}]\r\n error: undef\r\n[{mod_restful,start,\r\n     [<<\"MYHOSTNAME\">>,\r\n      [{api,\r\n           [[{path,[<<\"admin\">>]},\r\n             {module,mod_restful_admin},\r\n             {params,\r\n                 [{key,<<\"secret\">>},\r\n                  {allowed_commands,\r\n                      [srg_create,srg_user_add,status,\r\n                       registered_users]}]}]]}]],\r\n     []},\r\n {gen_mod,start_module,3,[{file,\"src/gen_mod.erl\"},{line,98}]},\r\n {lists,foreach,2,[{file,\"lists.erl\"},{line,1336}]},\r\n {ejabberd_app,start,2,[{file,\"src/ejabberd_app.erl\"},{line,74}]},\r\n {application_master,start_it_old,4,\r\n     [{file,\"application_master.erl\"},{line,272}]}]\r\n2016-02-24 11:18:22.002 [critical] <0.38.0>@gen_mod:start_module:111 ejabberd initialization was aborted because a module start failed.\r\n```\r\n\r\nany idea what am I missing?\r\n\r\nThanks\r\nItay"}}