routes
Route/endpoint related items.
CompiledRoute
A route that has been compiled to include uri variables.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
route |
Route
|
The route to compile. |
required |
Source code in wom/routes.py
with_params
Adds additional query params to this compiled route.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
params |
Dict[str, Any]
|
The query params to compile. |
required |
Returns:
Type | Description |
---|---|
CompiledRoute
|
The compiled route for chained calls. |
Source code in wom/routes.py
Route
A route that has not been compiled yet.
Source code in wom/routes.py
compile
Turn this route into a compiled route.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*args |
Union[str, int]
|
The arguments to insert into the uri. |
()
|
Returns:
Type | Description |
---|---|
CompiledRoute
|
The compiled route. |