URIPathSegmentAttribute Class
Defines the URL path of a service contract, a service operation, or an entity set.
Remarks
It is usually used through its Route alias. Applied to a service contract interface, it replaces the interface name in the URL; applied to a method, it replaces the method name. The path can have several segments and parameter placeholders, as in [Route('{A}/Plus/{B}')], and parameters used in placeholders are read from the URL path. An empty path is allowed, which makes the interface or the method respond at the URL of its parent, including the root URL of the server. Applied to an Aurelius entity class, it defines the name of the entity set of the class, as in [URIPath('Customers')].
Syntax
Unit: XData.Service.Common
URIPathSegmentAttribute = class(TCustomAttribute);
Constructors
| Name | Description |
|---|---|
| Create | Creates the attribute with the given path. |
Properties
| Name | Description |
|---|---|
| Path | Gets the URL path defined by the attribute. |