Adding support for url segments in the endpoint builder. This will be needed by the Shipment wrapper