REST.Client.TCustomRESTRequest.AutoCreateParams

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AutoCreateParams: Boolean read FAutoCreateParams write SetAutoCreateParams default True;

C++

__property bool AutoCreateParams = {read=FAutoCreateParams, write=SetAutoCreateParams, default=1};

Properties

Type Visibility Source Unit Parent
property public
REST.Client.pas
REST.Client.hpp
REST.Client TCustomRESTRequest

Description

Indicates whether or not the request should automatically include parameters from the resource URL of the request.

For example, if the resource URL is "Products/{ProductId}" and AutoCreateParams is True, your request automatically includes a parameter with key "ProductId" and without value, into its list of parameters.

If a parameter already exist with the same name as a parameter key extracted from the resource URL, the parameter from the resource URL is ignored. Existing parameters are never overwritten with the values of parameters extracted from the resource URL.

See Also