diff options
| author | Gustavoeklund01 <eklundgu@gmail.com> | 2025-11-04 18:52:57 -0300 |
|---|---|---|
| committer | Gustavoeklund01 <eklundgu@gmail.com> | 2025-11-04 18:52:57 -0300 |
| commit | e3b41c5c24488a48b552fb7aeffe250574b9c8a8 (patch) | |
| tree | a9529250bba5965e8b9f5981295ad75b25247771 /api/routes/stations.py | |
| parent | 6e845c8fc10905e51f3c0bb081bc4a09e7062883 (diff) | |
| parent | cc1b5e2f48ef62670be05ccfc6346b16b61844c8 (diff) | |
Merge branch 'master' of https://github.com/Simplesmente-O-Grupo/iot-monitoring
Diffstat (limited to 'api/routes/stations.py')
| -rw-r--r-- | api/routes/stations.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/api/routes/stations.py b/api/routes/stations.py index 0a753fe..c7cdf7c 100644 --- a/api/routes/stations.py +++ b/api/routes/stations.py @@ -2,7 +2,7 @@ from fastapi import APIRouter, HTTPException from sqlalchemy import select from ..database import SessionLocal from ..models import Station, SensorDevice, Location -from pydantic import BaseModel +from ..schemas.station import PostStation from datetime import datetime router = APIRouter( @@ -35,11 +35,6 @@ async def get_stations(): session.close() return dc -class PostStation(BaseModel): - name: str - installation_date: int - location_id: int - @router.post('/') async def post_station(station: PostStation): session = SessionLocal() |
