chore(api): make version prefix optional

This commit is contained in:
Matthew Farrellee 2025-09-02 08:57:18 -04:00
parent 5c873d53db
commit f991f9ff1c
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,7 @@ class WebMethod:
descriptive_name: str | None = None
experimental: bool | None = False
required_scope: str | None = None
add_version: bool = True
T = TypeVar("T", bound=Callable[..., Any])
@ -38,6 +39,7 @@ def webmethod(
descriptive_name: str | None = None,
experimental: bool | None = False,
required_scope: str | None = None,
add_version: bool = True,
) -> Callable[[T], T]:
"""
Decorator that supplies additional metadata to an endpoint operation function.
@ -61,6 +63,7 @@ def webmethod(
descriptive_name=descriptive_name,
experimental=experimental,
required_scope=required_scope,
add_version=add_version,
)
return func