I am trying to get an HTTP API from existing server - following below article
issues I am facing are
- Application contains lot of custom objects (not remobject’s custom object) which has been passed from client to server in binary format. I am not sure if same can be achieved using HTTP API
Sample function :
function MyGetFunction(const CallInfo: stCallInfo;
[ROCustom(‘HttpApiQueryParameter’,‘1’)] const sRoleName: string;
[ROCustom(‘HttpApiQueryParameter’,‘1’)] const sStartingWith: string;
[ROCustom(‘HttpApiQueryParameter’,‘1’)] const bTemplates: Boolean;
const Query: TMyOwnClassObject;
[ROCustom(‘HttpApiQueryParameter’,‘1’)] const iParentID: Integer): Boolean;
In above example , TMyOwnClassObject is a class in code which has been shared between client and server and it’s object is passed in binary format from client to server and vice versa.
existing business logic is written using above custom classes. just want to understand if there is any workaround for this problem which can be implemented with least resources ?
- I want to pass 2 parameter in request body but it seems only one parameter is allowed as request body. for above function , I think two parameter must by part of request body but showing only CallInfo
Please help me with this