You are not logged in.
For example, full url is http://myserver/MyMethod/Parameter
How can I get Parameter as a string from Ctxt: TSQLRestServerURIContext object?
Last edited by vladon (2015-01-05 01:30:57)
Offline
Will this be OK?
function TCustomRestServer.GetAfterSlashParam(Ctxt: TSQLRestServerURIContext): string;
var
uri, urifull: string;
begin
uri := UTF8ToString(Ctxt.URI);
urifull := UTF8ToString(Ctxt.URIWithoutSignature);
Result := urifull.Substring(urifull.IndexOf(uri) + uri.Length + 1);
end;
Offline