REST API query or body preference

Question: In your documentation I see you support both query parameters and body parameters when making calls to the REST API. Which is the preference when calling the API with a client application?

Example: Channels - Asterisk Documentation

If there should be support for a method to send parameters to POST endpoints, which should it be? Query parameters or body?

Will you keep supporting both methods in your REST API? Or should we prefer one over the other?

Some parameters like “variables” you must include in the POST body but the rest are your choice. We have no preference. If you already have to create a body then putting everything in the body may be more convenient for you. We have no plans to change the way they are handled and if we did (highly unlikely), it’d only be in a new major version with plenty of notice.

1 Like

Thank you for your answer. I’ve given this feedback to the team.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.