| Methods |
public
|
serviceUri(): string
The URI segment that addresses this service below the OData prefix.
The URI segment that addresses this service below the OData prefix.
An empty string means the service is mounted at the prefix root itself.
|
#
|
public
|
endpoint(): string
The fully qualified URL of this service's root endpoint, including
the trailing slash, e.g. "https://example.com/odata…
The fully qualified URL of this service's root endpoint, including
the trailing slash, e.g. "https://example.com/odata/partners/".
|
#
|
public
|
route(): string
The Laravel route path for this service, e.g. "odata/partners".
The Laravel route path for this service, e.g. "odata/partners".
|
#
|
public
|
namespace(): string
The XML namespace used in the $metadata document,
e.g. "MyService.Data".
The XML namespace used in the $metadata document,
e.g. "MyService.Data".
|
#
|
public
|
cachedMetadataXMLPath(): ?string
Where the finished `$metadata` document of this service lives, or null to serialize it per request.
Where the finished $metadata document of this service lives, or null to serialize it per request.
odata:cache writes the document there, odata:clear removes it, and $metadata is served from the file
whenever it exists — the cache hit; without it the service serializes, the cold path. A service that ships a
hand-written document returns its path.
|
#
|
public
|
cachesMetadataXML(): bool
Whether `odata:cache` writes the document at `cachedMetadataXMLPath()` and `odata:clear` removes it.
Whether odata:cache writes the document at cachedMetadataXMLPath() and odata:clear removes it.
A document the commands do not look after is one the service ships itself: served, never written or deleted.
ODataService answers yes for a path under resources/edmx/ and no elsewhere.
|
#
|
public
|
schema(): RuntimeSchemaInterface
Returns the fully resolved runtime schema for this service.
Returns the fully resolved runtime schema for this service.
Implementations must cache the result after the first call — schema
construction (discovery + resolver binding) must not repeat per request.
|
#
|