You are not logged in.
Pages: 1
Looking at sample 26 Restful-ORM.
The ORM server has a public method called Blob. With GET, POST, PUT and DELETE parts.
GET can be accessed by CallBackGetResult.
function TSQLNoteFile.GetBlob(aClient: TSQLRestClientURI): RawUTF8;
begin
Result := aClient.CallBackGetResult('Blob',[],RecordClass,fID);
end;
PUT can be accessed in the same way with CallBackPut.
But how can DELETE (and POST) be accessed by the REST-client (by callback) ?
I am now accessing the DELETE part by using:
aClient.URI(aClient.Model.URI[RecordClass]+'/'+{$ifndef ENHANCEDRTL}Int32ToUtf8{$else}IntToStr{$endif}(fID)+'/Blob','DELETE');
This works, but it is not in line with the other callbacks.
Offline
Good idea.
We have added TSQLRestClientURI.CallBack() method allowing any HTTP verb for method-based services.
See http://synopse.info/fossil/info/cf04a509f6
Offline
Pages: 1