TXDataResourceInfo.Create Constructor
Creates the resource information for the segments of a request URL.
Remarks
The URL is only resolved when Solve is called.
Syntax
Unit: XData.Module.ResourceInfo
constructor TXDataResourceInfo.Create(const AModel: TXDataModel; const ASegments: TArray<string>; AEnableEntityKeyAsSegment: Boolean = False);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AModel | TXDataModel | The XData model the URL is resolved against. |
| const | ASegments | TArray<string> | The path segments of the URL, relative to the base URL of the module. |
| AEnableEntityKeyAsSegment | Boolean | Optional: Default value is False If True, an entity can also be addressed with the key as a separate segment, as in Customer/1, in addition to the Customer(1) format. |