*** User 2022-03-03 10:38:08.247 ***
REST request:
Code: 200
Req: {<0.14029.1>,<<"/api/commands">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c6823ce9946a0cc1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"5921">>}],
<<"[{\"path\":\"/commands\",\"name\":\"list_methods\",\"method\":\"GET\",\"desc\":\"List commands\",\"category\":\"commands\",\"args\":{},\"action\":\"read\"},{\"path\":\"/contacts\",\"name\":\"add_contact\",\"method\":\"POST\",\"desc\":\"Add a contact to roster\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\"},\"action\":\"create\"},{\"path\":\"/contacts/:caller\",\"name\":\"list_contacts\",\"method\":\"GET\",\"desc\":\"Get roster\",\"category\":\"contacts\",\"args\":{\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/contacts/:caller/:jid\",\"name\":\"subscription\",\"method\":\"PUT\",\"desc\":\"Send out a subscription request\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\",\"action\":\"string\"},\"action\":\"update\"},{\"path\":\"/contacts/:caller/:jid\",\"name\":\"delete_contact\",\"method\":\"DELETE\",\"desc\":\"Remove a contact from roster\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\"},\"action\":\"delete\"},{\"path\":\"/contacts/:caller/:jid/manage\",\"name\":\"set_subscription\",\"method\":\"PUT\",\"desc\":\"Set / unset mutual subscription\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\",\"action\":\"string\"},\"action\":\"update\"},{\"path\":\"/contacts/:caller/:jids/multiple\",\"name\":\"delete_contacts\",\"method\":\"DELETE\",\"desc\":\"Remove provided contacts from roster\",\"category\":\"contacts\",\"args\":{\"jids\":\"[binary]\",\"caller\":\"string\"},\"action\":\"delete\"},{\"path\":\"/messages\",\"name\":\"send_message\",\"method\":\"POST\",\"desc\":\"Send chat message from to\",\"category\":\"messages\",\"args\":{\"to\":\"string\",\"caller\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/messages/:caller\",\"name\":\"get_last_messages_with_everybody\",\"method\":\"GET\",\"desc\":\"Get n last messages from archive, optionally before a certain date (unixtime)\",\"category\":\"messages\",\"args\":{\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/messages/:caller/:with\",\"name\":\"get_last_messages\",\"method\":\"GET\",\"desc\":\"Get n last messages to/from given contact, with limit and date\",\"category\":\"messages\",\"args\":{\"with\":\"string\",\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/muc-lights/:domain\",\"name\":\"create_identifiable_muc_light_room\",\"method\":\"PUT\",\"desc\":\"Create a MUC Light room with user-provided username part in JID\",\"category\":\"muc-lights\",\"args\":{\"subject\":\"string\",\"owner\":\"string\",\"name\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"update\"},{\"path\":\"/muc-lights/:domain\",\"name\":\"create_muc_light_room\",\"method\":\"POST\",\"desc\":\"Create a MUC Light room with unique username part in JID.\",\"category\":\"muc-lights\",\"args\":{\"subject\":\"string\",\"owner\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/:name/:owner/management\",\"name\":\"delete_room\",\"method\":\"DELETE\",\"desc\":\"Delete a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"owner\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"delete\"},{\"path\":\"/muc-lights/:domain/:name/messages\",\"name\":\"send_message_to_muc_light_room\",\"method\":\"POST\",\"desc\":\"Send a message to a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"name\":\"string\",\"from\":\"string\",\"domain\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/:name/participants\",\"name\":\"invite_to_room\",\"method\":\"POST\",\"desc\":\"Invite to a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"sender\":\"string\",\"recipient\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/config\",\"name\":\"change_muc_light_room_configuration\",\"method\":\"PUT\",\"desc\":\"Change configuration of MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"user\":\"string\",\"subject\":\"string\",\"name\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"update\"},{\"path\":\"/mucs/:domain\",\"name\":\"create_muc_room\",\"method\":\"POST\",\"desc\":\"Create a MUC room.\",\"category\":\"mucs\",\"args\":{\"owner\":\"string\",\"nick\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/mucs/:domain/:name/:nick\",\"name\":\"kick_user_from_room\",\"method\":\"DELETE\",\"desc\":\"Kick a user from a MUC room (on behalf of a moderator).\",\"category\":\"mucs\",\"args\":{\"nick\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"delete\"},{\"path\":\"/mucs/:domain/:name/messages\",\"name\":\"send_message_to_room\",\"method\":\"POST\",\"desc\":\"Send a message to a MUC room from a given user.\",\"category\":\"mucs\",\"args\":{\"name\":\"string\",\"from\":\"string\",\"domain\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/mucs/:domain/:name/participants\",\"name\":\"invite_to_muc_room\",\"method\":\"POST\",\"desc\":\"Send a MUC room invite from one user to another.\",\"category\":\"mucs\",\"args\":{\"sender\":\"string\",\"recipient\":\"string\",\"reason\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/sessions/:host\",\"name\":\"list_sessions\",\"method\":\"GET\",\"desc\":\"Get session list\",\"category\":\"sessions\",\"args\":{\"host\":\"string\"},\"action\":\"read\"},{\"path\":\"/sessions/:host/:user/:res\",\"name\":\"kick_user\",\"method\":\"DELETE\",\"desc\":\"Terminate user connection\",\"category\":\"sessions\",\"args\":{\"user\":\"string\",\"res\":\"string\",\"host\":\"string\"},\"action\":\"delete\"},{\"path\":\"/stanzas\",\"name\":\"send_stanza\",\"method\":\"POST\",\"desc\":\"Send an arbitrary stanza\",\"category\":\"stanzas\",\"args\":{\"stanza\":\"string\"},\"action\":\"create\"},{\"path\":\"/test_arg\",\"name\":\"test_arg\",\"method\":\"POST\",\"desc\":\"List test_arg\",\"category\":\"test_arg\",\"args\":{\"arg\":\"boolean\"},\"action\":\"create\"},{\"path\":\"/users\",\"name\":\"register_user\",\"method\":\"POST\",\"desc\":\"Register a user\",\"category\":\"users\",\"args\":{\"username\":\"string\",\"password\":\"string\",\"host\":\"string\"},\"action\":\"create\"},{\"path\":\"/users/:host\",\"name\":\"list_users\",\"method\":\"GET\",\"desc\":\"List registered users on this host\",\"category\":\"users\",\"args\":{\"host\":\"string\"},\"action\":\"read\"},{\"path\":\"/users/:host/:user\",\"name\":\"unregister_user\",\"method\":\"DELETE\",\"desc\":\"UnRegister a user\",\"category\":\"users\",\"args\":{\"user\":\"string\",\"host\":\"string\"},\"action\":\"delete\"},{\"path\":\"/users/:host/:user\",\"name\":\"change_password\",\"method\":\"PUT\",\"desc\":\"Change user password\",\"category\":\"users\",\"args\":{\"user\":\"string\",\"newpass\":\"string\",\"host\":\"string\"},\"action\":\"update\"}]">>,
6047,767}
Params: #{body => <<>>,method => <<"GET">>,path => <<"/api/commands">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}