This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pydantic import AmqpDsn | |
from pydantic import BaseSettings | |
from pydantic import HttpUrl | |
from pydantic import PostgresDsn | |
from pydantic import RedisDsn | |
from . import VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import Depends, FastAPI | |
from .dependencies import get_service | |
from .schemas import DataResponseSchema | |
from .services import DataService | |
app = FastAPI() | |
@app.get("/data", response_model=DataResponseSchema) |