-
Notifications
You must be signed in to change notification settings - Fork 2
/
api.py
32 lines (25 loc) · 946 Bytes
/
api.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from fastapi import FastAPI
from v1 import empenhos_routes, itens_dotacao_routes, orcado_routes
#pode colocar markdown
description = """
## API para o Middleware de Acompanhamento Orçamentário do **SMAE**.
Desenvolvimento interno - time de **tecnologia de SEPEP** 🚀
"""
app = FastAPI(openapi_url="/",
title="Middleware_orcamento",
description=description,
version="0.0.1",
#terms_of_service="http://example.com/terms/",
contact={
"name": "SEPEP",
"url": "https://www.prefeitura.sp.gov.br/cidade/secretarias/governo/planejamento/",
"email": "[email protected]",
},
license_info={
"name": "AGPL V3.0",
"url": "https://www.gnu.org/licenses/agpl-3.0.en.html",
},
)
app.include_router(empenhos_routes, prefix="/v1/empenhos")
app.include_router(itens_dotacao_routes, prefix="/v1/itens_dotacao")
app.include_router(orcado_routes, prefix="/v1/orcado")