Generated API reference
decoratoryak.web_endpoint
yak.web_endpoint
Decorator to expose a function as an HTTP endpoint.
Decorator to expose a function as an HTTP endpoint.
The decorated function is declared as an HTTP endpoint. The control plane
returns the authoritative URL when it is published; callers must not derive
a hostname from organization, environment, or display names.
Python SDK reference · Yak 0.1.19release v0.1.19
provenance
c2e8cf7c309abe376f390072b94a9ecd3e633080Signature
web_endpoint(method: str = 'GET', label: Optional[str] = None, path: str = '/') -> Callable[[Callable], Callable]
Parameters#
| Name | Type | Default | Description |
|---|---|---|---|
methodpositional-or-keyword |
str |
'GET' |
HTTP method (GET, POST, PUT, DELETE, PATCH, etc.). Default: GET |
labelpositional-or-keyword |
Optional[str] |
None |
Optional server-validated label. If not provided, the server |
pathpositional-or-keyword |
str |
'/' |
Additional path after the endpoint URL. Default: / |
Returns#
Callable[[Callable], Callable]Decorated function with _web_endpoint metadata attached
Related guides
BoundaryPreview limitations
- This page is generated from the pinned release schema; update the site pin when a new release should be documented.
- Lifecycle, persistence and operational context belong in the linked handwritten guides.