EMS.ResourceAPI.TEndpointSegments
Delphi
TEndpointSegments = class abstract
C++
class PASCALIMPLEMENTATION TEndpointSegments : public System::TObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | EMS.ResourceAPI.pas EMS.ResourceAPI.hpp |
EMS.ResourceAPI | EMS.ResourceAPI |
Description
Represents a list of segments of an EMS resource path.
Segments are parts of a URL or path delimited by slashes. For example, if an instance of TEndpointSegments represents an EMS resource located at "myresources/1", that instance contains two segments, "myresources" and "1", in that order.
Note: Take into account that using these requests means:
GET http://host/param - Get entity identified by "param". Last segment is "param", without terminating slash.
GET http://host/param/ - Get collection of entities identified by "param". Last segment is "param/", with terminating slash.To manage an instance of TEndpointSegments:
- Use Items to obtain the list of segments. You can also iterate through the segments using an enumerator, or create an array from the list of segments.
- Count indicates the number of segments in the list.
- Use Add to append segments at the end of the list of segments.