You are not logged in.
Pages: 1
As far as I've read in the documentation, post method requests are not supported in method based services. Am I correct?
Last edited by damiand (2021-03-28 18:18:15)
Offline
Yes, is suported.
Example of how get post content as json
procedure TMBService.MyPostRequest(Ctxt: TSQLRestServerURIContext);
var j: variant;
begin
if (Ctxt.Method = mPOST) and (Ctxt.Call^.InBodyTypeIsJson(True)) then
j := _JsonFast(Ctxt.Call^.InBody);
end;
Offline
Thanks a lot!
Offline
Pages: 1