75 lines
1.4 KiB
Markdown
75 lines
1.4 KiB
Markdown
# Router: log_client_viewing
|
|
|
|
**File:** app/routers/log_client_viewing.py
|
|
|
|
**Routes found:** 4
|
|
|
|
**Functions:** 0 —
|
|
|
|
**Classes:** 0 —
|
|
|
|
|
|
|
|
## Routes
|
|
|
|
- **POST** `/log/client_viewing`
|
|
|
|
- **PATCH** `/log/client_viewing/{obj_id}`
|
|
|
|
- **GET** `/account/{account_id}/log/client_viewing/list`
|
|
|
|
- **DELETE** `/log/client_viewing/{log_client_viewing_obj_id}`
|
|
|
|
|
|
|
|
## From-imports
|
|
|
|
- app.config
|
|
|
|
- app.db_sql
|
|
|
|
- app.lib_general
|
|
|
|
- app.methods.log_client_viewing_methods
|
|
|
|
- app.models.log_client_viewing_models
|
|
|
|
- app.models.response_models
|
|
|
|
- app.routers.api_crud
|
|
|
|
- fastapi
|
|
|
|
- pydantic
|
|
|
|
- typing
|
|
|
|
|
|
|
|
## File preview (first 20 lines)
|
|
|
|
```python
|
|
|
|
import datetime, pytz, time
|
|
from fastapi import APIRouter, Body, Depends, Header, HTTPException, Path, Query, Response, status
|
|
from pydantic import BaseModel, EmailStr, Field
|
|
from typing import Dict, List, Optional, Set, Union
|
|
|
|
from app.lib_general import log, logging
|
|
from app.config import settings
|
|
from app.db_sql import sql_insert, sql_update, sql_insert_or_update, sql_select, sql_delete, redis_lookup_id_random
|
|
|
|
from app.routers.api_crud import delete_obj_template, get_obj_template, get_obj_li_template, patch_obj_template, post_obj_template
|
|
|
|
from app.methods.log_client_viewing_methods import get_log_client_viewing_rec_list, load_log_client_viewing_obj
|
|
|
|
from app.models.log_client_viewing_models import Log_Client_Viewing_Base
|
|
from app.models.response_models import Resp_Body_Base, mk_resp
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
|
|
```
|