I need get in the api by passing a query string in case the route is:
api/v1/servers/#{server_name}/zones
Query params is rrsets=false
and code:
HTTPoison.get!("api/v1/servers/#{server_name}/zones")
How I send with a query string?
I need get in the api by passing a query string in case the route is:
api/v1/servers/#{server_name}/zones
Query params is rrsets=false
and code:
HTTPoison.get!("api/v1/servers/#{server_name}/zones")
How I send with a query string?
The code in your question doesn't even compile - please put more effort to provide a working example next time.
HTTPoison.get!/3
accepts a URL as its first argument, so you can just provide the query string as part of the URL:If you want to build URL with a dynamic query string, see Idiom to construct a URI with a query string in Elixir: