EMS.Services.IEMSResourceRequest.Execute

From RAD Studio API Documentation
Jump to: navigation, search

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:

  • AContext is the resource request context.
  • AMethodType is the request method.
  • AResourceName is the name of the target resource.
  • ASegments is 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".
  • AQueryParams are 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 with Put or Post as request method.

See Also