Deploy inicial: API FastAPI + infra Podman/Caddy + docs
- App FastAPI (main.py, app/): rotas /health e /dados_retorno, middleware anti-scanner, logging configurado - Config via configs.json (Pydantic); segredos fora do codigo e do git (.gitignore) - Dockerfile (oracledb thin, HEALTHCHECK) + requirements.txt + .dockerignore - Deploy Podman/Quadlet + Caddy em deploy/ - Docs: CLAUDE.md + docs/ (arquitetura, deploy, known-issues) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
15c89c9038
22 changed files with 1397 additions and 0 deletions
9
app/v1/api.py
Normal file
9
app/v1/api.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from app.v1.holmes.holmes import holmes_router
|
||||
from fastapi import APIRouter
|
||||
|
||||
api_router = APIRouter()
|
||||
|
||||
api_router.include_router(
|
||||
holmes_router,
|
||||
prefix='/holmes'
|
||||
)
|
||||
12
app/v1/holmes/holmes.py
Normal file
12
app/v1/holmes/holmes.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from app.services.holmes import buscar_processo
|
||||
from fastapi import APIRouter
|
||||
|
||||
holmes_router = APIRouter()
|
||||
|
||||
@holmes_router.post(
|
||||
path="/dados_compras",
|
||||
)
|
||||
def obter_dados_compras(
|
||||
dados_front
|
||||
):
|
||||
pass
|
||||
0
app/v1/holmes/models.py
Normal file
0
app/v1/holmes/models.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue