EMS.Services.IEMSResourceRequest.Execute
Delphi
function Execute(const AContext: IEMSResourceRequestContext; const AMethodType: TEndpointRequest.TMethod; const AResourceName: string; const ASegments: TEMSResourceRequestSegments; const AQueryParams: TEMSResourceRequestQueryParams; const ARequestContent: IEMSResourceRequestContent): IEMSResourceResponseContent; overload;
function Execute(const AContext: IEMSResourceRequestContext; AMethodType: TEndpointRequest.TMethod; const AResourceName: string; const ASegments: TEMSResourceRequestSegments; const AQueryParams: TEMSResourceRequestQueryParams): IEMSResourceResponseContent; overload;
C++
virtual _di_IEMSResourceResponseContent __fastcall Execute(const _di_IEMSResourceRequestContext AContext, const Ems::Resourceapi::TEndpointRequest::TMethod AMethodType, const System::UnicodeString AResourceName, const System::DynamicArray<System::UnicodeString> ASegments, const System::DynamicArray<System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> > AQueryParams, const _di_IEMSResourceRequestContent ARequestContent) = 0 /* overload */;
virtual _di_IEMSResourceResponseContent __fastcall Execute(const _di_IEMSResourceRequestContext AContext, Ems::Resourceapi::TEndpointRequest::TMethod AMethodType, const System::UnicodeString AResourceName, const System::DynamicArray<System::UnicodeString> ASegments, const System::DynamicArray<System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> > AQueryParams) = 0 /* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | EMS.Services.pas EMS.Services.hpp |
EMS.Services | IEMSResourceRequest |
Description
Executes the specified resource request and returns its response.
Execute receives the following parameters:
AContextis the resource request context.AMethodTypeis the request method.AResourceNameis the name of the target resource.ASegmentsis the URL path to specify the target endpoint of the target resource. For example, if the name of the target resource is "MyResource" and this URL path is "foo/bar", your request targets "myresource/foo/bar".AQueryParamsare the query parameters of your request.ARequestContent(optional) is the content of your request. Use this parameter in requests that require sending content to the remote endpoint, such as requests withPutorPostas request method.