Skip to content

[V] $segmentOf

const $segmentOf: SegmentOfDecorator;

Copies a resource’s collection segment onto an operation for automatic routing. Uses the key property’s segment when a key exists, or the model’s segment otherwise. Leaves the operation unchanged if the segment is absent or empty.