Log in
Model

ServiceUrl

Magento\Store\Model\Argument\Interpreter\ServiceUrl

What it does

This class generates service API URLs for Magento 2 REST endpoints by combining the base URL with store code, API version, and a specific path.

Developers use this when they need to programmatically construct URLs to Magento REST API endpoints, typically in configuration files or dependency injection contexts where dynamic URL generation is required.

Public Methods

  • evaluate()