fabriciocolombo / delphi-rest-client-api

A Delphi REST client API to consume REST services written in any programming language.
Apache License 2.0
380 stars 182 forks source link

Delphi 7 how to fill Body #133

Open mina70 opened 4 years ago

mina70 commented 4 years ago

Hi, how to set a json body with "GET" method?

MyToken := Dm.RestClient .Resource('http://.../GenToken') .Accept(RestUtils.MediaType_Json) .Get();

I want to send this json string parameter at the body to the server (with above request)? {"username": "admin","password": "adminpass"}

thanks