Open devzonetrack opened 6 years ago
something like this should work:
type
TUser = class
name: string;
username: string;
end;
TUsers = TArray<TUser>;
TParams = class
kind: string;
end;
var
Params: TParams;
Users: TUsers;
begin
Params := TParams.Create;
Params.kind := 'admin';
Users := Client.Resource('https://jsonplaceholder.typicode.com/users').Get<TUsers>;
// or
Users := Client.Resource('https://jsonplaceholder.typicode.com/users').Post<TUsers>(Params);
end;
Helo fernand-o Thank very much this working fine.
Howto post single object as parameter and get array object as result?