aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_api.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add link in mod_http_api documentation to the docs API sectionBadlop2022-02-241-2/+3
|
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Accept more types of ejabberdctl commands arguments as JSON-encodedAlexey Shchepin2021-12-201-0/+1
|
* Improve formatting and add sections linksBadlop2021-08-231-2/+2
|
* Add example config to mod_http_api documentationBadlop2021-08-231-1/+11
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Copy more option explanations from ejabberd Docs siteBadlop2020-04-081-2/+10
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-1/+7
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-6/+6
|
* Documentation of mod_http_api moved from source code to Docs pageBadlop2019-07-161-45/+0
|
* Use correct stacktrace in logging macrosEvgeny Khramtsov2019-06-261-3/+6
| | | | | | | By calling erlang:get_stacktrace() inside a lager function we obtain actually a stacktrace of the lager function, not the one we got during exception. This is not a problem for newest Erlang versions though.
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-2/+2
|
* Add support for backwards compatibility in command argument names (#2908)Badlop2019-06-191-3/+14
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-83/+40
|
* Return proper error message for duplicate or missing args in http_api callPaweł Chmielowski2019-04-031-6/+10
|
* Log message when trying to execute http_api command with extra argumentsPaweł Chmielowski2019-04-031-5/+7
|
* Formating fixPaweł Chmielowski2019-04-031-1/+1
|
* Make http_api command execution exception catcher log also command and argsPaweł Chmielowski2019-04-031-1/+4
|
* Produce better error for http_api request with extra parametersPaweł Chmielowski2019-01-301-1/+4
|
* Reject request http_api request that have malformed Authentication headerPaweł Chmielowski2019-01-301-11/+13
|
* Allow specifying tag for listener for api_permission purposesPaweł Chmielowski2019-01-301-4/+6
| | | | | | | | | | | | | | | | | | This commit will allow adding tag to http listeners: listener: - port: 4000 - module: ejabberd_http - tag: "magic_listener" that later can be used to have special api_permission just for it: api_permissions: "magic_access": from: - tag: "magic_listener" who: all what: "*"
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Add code for handling deprecations of get_stacktrace()Paweł Chmielowski2018-12-131-9/+7
|
* Format list of {{name,string}, {value, _}} as json struct name/valPaweł Chmielowski2018-12-031-0/+8
|
* Make mod_http_api assume that missing args of type list are empty listPaweł Chmielowski2018-12-031-4/+9
|
* Don't preprocess arguments, format_args verifies and prepares them (#2629)Badlop2018-10-311-16/+1
|
* Recognize not_exists error in http_apiPaweł Chmielowski2018-10-191-3/+5
|
* Get stacktrace out of lager contextEvgeniy Khramtsov2018-09-011-5/+7
| | | | | Calling erlang:get_stacktrace() inside lager functions produces stacktraces of the logging function itself, not the function which has failed.
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-1/+0
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Find and fix typos using 'codespell'Evgeniy Khramtsov2018-01-271-2/+2
|
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-4/+5
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Ability to filter passwords from the log in mod_http_api (#1888)Marco Adkins2017-07-271-2/+10
| | | * Ability to filter passwords from the log when creating users through the mod_http_api
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-3/+1
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Rename aux.erl as misc.erl17.04Christophe Romain2017-04-111-17/+17
| | | | Thanks Microsoft Windows to not support some filenames
* Deprecate jlib.erl in favor of aux.erlEvgeniy Khramtsov2017-03-301-17/+17
| | | | | Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-4/+4
|
* Separate list of strings with \n for srg_get_info in mod_http_api (#1500)Badlop2017-02-231-0/+4
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-1/+5
|
* Make shim for mod_http_api admin_ip_access more robustPaweł Chmielowski2017-01-201-20/+22
|
* Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|
* API call does not necessary use token, it could use basic authMickael Remond2016-12-081-1/+1
|
* Get rid of compile warningsEvgeniy Khramtsov2016-11-251-2/+2
|
* Make string args in http_api be list stringsPaweł Chmielowski2016-11-151-4/+4
|
* Merge branch 'master' into xml-ngEvgeniy Khramtsov2016-11-121-133/+186
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/adhoc.erl src/cyrsasl_oauth.erl src/ejabberd_c2s.erl src/ejabberd_config.erl src/ejabberd_service.erl src/gen_mod.erl src/mod_admin_extra.erl src/mod_announce.erl src/mod_carboncopy.erl src/mod_client_state.erl src/mod_configure.erl src/mod_echo.erl src/mod_mam.erl src/mod_muc.erl src/mod_muc_room.erl src/mod_offline.erl src/mod_pubsub.erl src/mod_stats.erl src/node_flat_sql.erl src/randoms.erl
| * New api permissions frameworkPaweł Chmielowski2016-10-051-103/+92
| |
| * Fix 404 response formatting (thanks to Kaggggggga)(#1306)Badlop2016-09-281-1/+1
| |
| * Expand parsing of json input to be able to handle update_roster commandPaweł Chmielowski2016-09-131-0/+19
| |