Hello, is there a way to pass object as a parameter to interface and get all fields as query params ?
Example:
Interface:
@RequestLine("POST /api/doSomething")
void doSomething(@QueryObject Parameters parameters);
Model:
class Parameters {
String name;
String secondName;
}
And result request would be:
{host}/api/doSomething?name=name123&secondName=sn222
Hello, is there a way to pass object as a parameter to interface and get all fields as query params ?
Example:
Interface:
Model:
And result request would be:
{host}/api/doSomething?name=name123&secondName=sn222