- Archived 'aether_sql_tables' and 'legacy_router_logs' to documentation/archive/. - Static schema documentation is now superseded by the 'ae_obj_info' MCP tool and shared agents_sync metadata.
81 lines
1.3 KiB
Markdown
81 lines
1.3 KiB
Markdown
# Router: contact
|
|
|
|
**File:** app/routers/contact.py
|
|
|
|
**Routes found:** 7
|
|
|
|
**Functions:** 0 —
|
|
|
|
**Classes:** 0 —
|
|
|
|
|
|
|
|
## Routes
|
|
|
|
- **PATCH** `/{obj_id}`
|
|
|
|
- **POST** `/new_v4`
|
|
|
|
- **PATCH** `/{contact_id}/exist_v4`
|
|
|
|
- **PATCH** `/{contact_id}/json`
|
|
|
|
- **GET** `/list`
|
|
|
|
- **GET** `/{obj_id}`
|
|
|
|
- **DELETE** `/{obj_id}`
|
|
|
|
|
|
|
|
## From-imports
|
|
|
|
- app.config
|
|
|
|
- app.db_sql
|
|
|
|
- app.lib_general
|
|
|
|
- app.methods.contact_methods
|
|
|
|
- app.models.contact_models
|
|
|
|
- app.models.response_models
|
|
|
|
- app.routers.api_crud
|
|
|
|
- fastapi
|
|
|
|
- pydantic
|
|
|
|
- typing
|
|
|
|
|
|
|
|
## File preview (first 20 lines)
|
|
|
|
```python
|
|
|
|
import datetime
|
|
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 get_id_random, 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.contact_methods import create_update_contact_obj_v4, load_contact_obj, update_contact_obj
|
|
|
|
from app.models.contact_models import Contact_Base
|
|
from app.models.response_models import *
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
|
|
```
|