REST.Client.TCustomRESTRequest.ResourceSuffix

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ResourceSuffix: string read FResourceSuffix write SetResourceSuffix;

C++

__property System::UnicodeString ResourceSuffix = {read=FResourceSuffix, write=SetResourceSuffix};

Properties

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

Description

Optional path to append to the Resource string when determining the complete URL for the HTTP request.

For example, if BaseURL is "http://example.com/api", Resource is "myresource" and ResourceSuffix is "items/123", the complete URL for the request is "http://example.com/api/myresource/items/123".

If you are accessing an EMS resource, the ResourceSuffix property must contain the resource suffix of the target resource.