Closed sarsonj closed 2 months ago
Right. That was changed in API v1, introduced in ejabberd 24.02. It is mentioned in the 24.02 release notes, in the section named mod_http_api not named results
.
You can continue using API v0, which behaves as previous ejabberd versions, until you are able to update your ReST client.
What confused you is a problem in the documentation: the examples were not updated! Thanks for reporting, i'll investigate why they didn't get updated.
Documentation is updated, now it reflects the current behaviour, for example https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#get-vcard
Before creating a ticket, please consider if this should fit the discussion forum better.
Environment
Bug description
We have updated ejabberd from 21.04 to 24.04.
We are now testing our application and we found that there are some API call changes. We updated our app according to current docs, however, we found change it
get_vcard
, which doesn't work as should according to docs. Theget_vcard
should return JSON like this:but this is not true, currently it just returns a value like
Sure, we can update our application, but I'm not sure if this change is a bug or a feature, because the docs at https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#get-vcard don't reflect this change.