Search documentation

Type to search the documentation.

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
provenancec2e8cf7c309abe376f390072b94a9ecd3e633080
Signature
python
web_endpoint(method: str = 'GET', label: Optional[str] = None, path: str = '/') -> Callable[[Callable], Callable]

Parameters#

NameTypeDefaultDescription
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
chooses the endpoint identity.

pathpositional-or-keyword str '/'

Additional path after the endpoint URL. Default: /

Returns#

Callable[[Callable], Callable]

Decorated function with _web_endpoint metadata attached

Related guides

Live Apps
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.