-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
22 lines (17 loc) · 696 Bytes
/
app.py
File metadata and controls
22 lines (17 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from fastapi import FastAPI
from database import engine, Base
from routers.alunos import alunos_router
from routers.cursos import cursos_router
from routers.matriculas import matriculas_router
Base.metadata.create_all(bind=engine)
app = FastAPI(
title="API de Gestão Escolar",
description="""
Esta API fornece endpoints para gerenciar alunos, cursos e turmas, em uma instituição de ensino.
Permite realizar diferentes operações em cada uma dessas entidades.
""",
version="1.0.0",
)
app.include_router(alunos_router, tags=["alunos"])
app.include_router(cursos_router, tags=["cursos"])
app.include_router(matriculas_router, tags=["matriculas"])