(session: SessionDep, trans: Trans, id: int = Path(description=f"{PLACEHOLDER_PREFIX}uid"))
| 155 | @router.get("/{id}", response_model=UserEditor, summary=f"{PLACEHOLDER_PREFIX}user_detail_api", description=f"{PLACEHOLDER_PREFIX}user_detail_api") |
| 156 | @require_permissions(permission=SqlbotPermission(role=['admin'])) |
| 157 | async def query(session: SessionDep, trans: Trans, id: int = Path(description=f"{PLACEHOLDER_PREFIX}uid")) -> UserEditor: |
| 158 | db_user: UserModel = get_db_user(session = session, user_id = id) |
| 159 | u_ws_options = await user_ws_options(session, id, trans) |
| 160 | result = UserEditor.model_validate(db_user.model_dump()) |
| 161 | if u_ws_options: |
| 162 | result.oid_list = [item.id for item in u_ws_options] |
| 163 | return result |
| 164 | |
| 165 | |
| 166 | @router.post("", summary=f"{PLACEHOLDER_PREFIX}user_create_api", description=f"{PLACEHOLDER_PREFIX}user_create_api") |
nothing calls this directly
no test coverage detected