У меня есть маршрут, определенный как @router.get("/time-trend"), например :
Код: Выделить всё
http://127.0.0.1:8001/vehicles/time-trend?start=2024-11-25T18:30:00.000Z&end=2025-01-02T18:30:00.000Z
Код: Выделить всё
{
"detail": "Error fetching vehicle: 'time-trend' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string"
}
Код: Выделить всё
http://127.0.0.1:8001/vehicles/time-trend/?start=2024-11-25T18:30:00.000Z&end=2025-01-02T18:30:00.000Z
Подробнее здесь: https://stackoverflow.com/questions/793 ... ling-slash
Мобильная версия