Class LaravelUi5\Core\Http\Middleware\ResolveODataEndpoint

final

Resolves the OData service for the current request and binds it to the container so downstream middleware (e.g. EnsureODataAuthenticated) can access it without re-resolving.

Service lookup is delegated to Ui5ODataServiceRegistry which bridges the artifact registry to ODataServiceRegistryInterface.

A failed lookup answers as OData does: the error envelope and OData-Version: 4.0. Without the header the UI5 v4 model reports "Expected 'OData-Version' header" instead of the unknown namespace — the masquerade EnsureODataAuthenticated removes for the 401.

Methods