feat: adding openapi spect generation to the frontend client aas well as to fast api. Broke API out into different routes
This commit is contained in:
16
mta_sign_server/mta/schemas.py
Normal file
16
mta_sign_server/mta/schemas.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import List, Dict
|
||||
|
||||
from mta_api_client import Route
|
||||
|
||||
|
||||
class RouteResponse(BaseModel):
|
||||
arrival_times: List[int]
|
||||
|
||||
|
||||
class StationResponse(BaseModel):
|
||||
routes: Dict[Route, RouteResponse]
|
||||
|
||||
|
||||
class AllStationModel(BaseModel):
|
||||
stations: Dict[str, StationResponse]
|
||||
Reference in New Issue
Block a user