Some quick documentation for old legacy routes.
This commit is contained in:
72
documentation/legacy_router_logs/api_crud_v3_nested.md
Normal file
72
documentation/legacy_router_logs/api_crud_v3_nested.md
Normal file
@@ -0,0 +1,72 @@
|
||||
# Router: api_crud_v3_nested
|
||||
|
||||
**File:** app/routers/api_crud_v3_nested.py
|
||||
|
||||
**Routes found:** 5
|
||||
|
||||
**Functions:** 0 —
|
||||
|
||||
**Classes:** 0 —
|
||||
|
||||
|
||||
|
||||
## Routes
|
||||
|
||||
- **GET** `/{parent_obj_type}/{parent_obj_id}/{child_obj_type}/`
|
||||
|
||||
- **POST** `/{parent_obj_type}/{parent_obj_id}/{child_obj_type}/`
|
||||
|
||||
- **GET** `/{parent_obj_type}/{parent_obj_id}/{child_obj_type}/{child_obj_id}`
|
||||
|
||||
- **PATCH** `/{parent_obj_type}/{parent_obj_id}/{child_obj_type}/{child_obj_id}`
|
||||
|
||||
- **DELETE** `/{parent_obj_type}/{parent_obj_id}/{child_obj_type}/{child_obj_id}`
|
||||
|
||||
|
||||
|
||||
## From-imports
|
||||
|
||||
- app.ae_obj_types_def
|
||||
|
||||
- app.db_sql
|
||||
|
||||
- app.lib_api_crud_v3
|
||||
|
||||
- app.lib_general_v3
|
||||
|
||||
- app.models.response_models
|
||||
|
||||
- fastapi
|
||||
|
||||
- pydantic
|
||||
|
||||
- typing
|
||||
|
||||
|
||||
|
||||
## File preview (first 20 lines)
|
||||
|
||||
```python
|
||||
|
||||
from fastapi import APIRouter, Depends, Path, Query, Request, Response, Header
|
||||
from pydantic import ValidationError
|
||||
from typing import Optional, Union
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
from app.lib_general_v3 import (
|
||||
AccountContext, get_account_context,
|
||||
PaginationParams, StatusFilterParams,
|
||||
SerializationParams, DelayParams
|
||||
)
|
||||
from app.lib_api_crud_v3 import (
|
||||
check_account_access, apply_forced_account_filter, filter_order_by,
|
||||
get_supported_filters, safe_json_loads, sanitize_payload, format_db_error
|
||||
)
|
||||
from app.db_sql import get_last_sql_error
|
||||
from app.models.response_models import *
|
||||
from app.ae_obj_types_def import obj_type_kv_li
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user