If I try to run on Postman, It works perfectly. Look at below image.
You can see, below is url
Path parameter is
slug
My code in Flutter, Doesn't work!
final _authority = "xx.yy";
final _path = "api/user/:slug"; // Tried to replace "api/user/slug" AND "api/user"
final _params = { "slug" : "govadiyo" };
final _uri = Uri.https(_authority, _path, _params);
print(Uri.encodeFull(_uri.toString()));
var response = await http.get(Uri.encodeFull(_uri.toString()), headers: {'Content-Type': 'application/json'});
print(response.body);
Anything is going wrong with above code?