77 lines
1.1 KiB
Markdown
77 lines
1.1 KiB
Markdown
# Router: archive_content
|
|
|
|
**File:** app/routers/archive_content.py
|
|
|
|
**Routes found:** 5
|
|
|
|
**Functions:** 0 —
|
|
|
|
**Classes:** 0 —
|
|
|
|
|
|
|
|
## Routes
|
|
|
|
- **PATCH** `/{obj_id}`
|
|
|
|
- **GET** `/list`
|
|
|
|
- **GET** `/{obj_id}`
|
|
|
|
- **DELETE** `/{obj_id}`
|
|
|
|
- **DELETE** `/{archive_content_id}`
|
|
|
|
|
|
|
|
## From-imports
|
|
|
|
- ..log
|
|
|
|
- .api_crud
|
|
|
|
- app.config
|
|
|
|
- app.db_sql
|
|
|
|
- app.lib_general
|
|
|
|
- app.models.archive_content_models
|
|
|
|
- app.models.response_models
|
|
|
|
- fastapi
|
|
|
|
- pydantic
|
|
|
|
- typing
|
|
|
|
|
|
|
|
## File preview (first 20 lines)
|
|
|
|
```python
|
|
|
|
import datetime
|
|
#from datetime import datetime, time, timedelta
|
|
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 *
|
|
from ..log import *
|
|
from app.config import settings
|
|
from app.db_sql import *
|
|
|
|
from .api_crud import delete_obj_template, get_obj_template, get_obj_li_template, patch_obj_template, post_obj_template
|
|
|
|
from app.models.archive_content_models import Archive_Content_Base
|
|
from app.models.response_models import *
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
|
|
```
|