I am doing a project which uses httpie. I was able to send primitive fields and it's array as a request query parameter. For example, say i have variable named "age" which is integer type, i can send this variable as a Query parameter, Form parameter, or Path parameter. If i want to send the age as a Query parameter, i would write the following:
http -v -f POST 'localhost:8080/api/v1/public/users?age=20'
The problem is when i want to send an object of non-primitive class. For example, i have a class named Name which is following:
public class Name {
String first, middle, last;
}
Now for an object of this class how can i send an object of Name class as a parameter in httpie request. I tried a lot but didn't find any solution.