Add GET endpoint for /asian
This commit is contained in:
parent
bdc9964e47
commit
56bb49a038
@ -1,12 +1,11 @@
|
||||
from typing import List
|
||||
from fastapi import APIRouter, status
|
||||
|
||||
from schemas.car import CarSchema
|
||||
from helpers.car_helpers import get_asian_cars
|
||||
from typing import Dict, Any
|
||||
from helpers.health_helpers import check_system_status
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.get("/asian", status_code=200, response_model=List[CarSchema])
|
||||
async def get_asian_cars_list():
|
||||
asian_cars = get_asian_cars()
|
||||
return asian_cars
|
||||
@router.get("/api/health", status_code=200)
|
||||
async def health_check() -> Dict[str, Any]:
|
||||
"""Check system health status"""
|
||||
status_info = check_system_status()
|
||||
return status_info
|
Loading…
x
Reference in New Issue
Block a user