Reputation: 33
how convert this command curl $ curl -i --basic -u admin:public -X GET "http://localhost:8081/api/v4"
to http method to use it in flutter
and the result:
{"data":[{"path":"/auth_clientid","name":"list_clientid","method":"GET","descr":"List available clientid in the cluster"}, ...],"code":0}
please help thanks
Upvotes: 2
Views: 1677
Reputation: 572
Use this website: https://curl.trillworks.com/#dart
To convert curl commands to dart http requests.
Upvotes: 4