lang_tools.webapp.api.v1.api_router
¶
API v1 main router aggregating all v1 routes.
Functions:
-
api_root–Return API v1 root information.
-
protected_endpoint–Return a protected endpoint greeting.
api_root
async
¶
Return API v1 root information.
Returns:
-
MessageResponse–MessageResponse with API info.
Source code in src/lang_tools/webapp/api/v1/api_router.py
protected_endpoint
async
¶
protected_endpoint(
session: Annotated[
SessionData, Depends(get_current_user)
],
) -> MessageResponse
Return a protected endpoint greeting.
Parameters:
-
session(Annotated[SessionData, Depends(get_current_user)]) –Current user session (requires authentication).
Returns:
-
MessageResponse–MessageResponse with personalized greeting.