📝 Add stubs for Security, multi-files, app configurations

This commit is contained in:
Sebastián Ramírez
2018-12-15 21:41:36 +04:00
parent 8a95ea23e2
commit 70b0231f64
74 changed files with 59 additions and 1192 deletions

View File

@@ -0,0 +1,10 @@
from fastapi import FastAPI
app = FastAPI(
title="My Super Project", version="2.5.0", openapi_url="/api/v1/openapi.json"
)
@app.get("/items/")
async def read_items():
return [{"name": "Foo"}]