📝 Add tutorials python src files

This commit is contained in:
Sebastián Ramírez
2018-12-14 10:02:03 +04:00
parent 9febe9af2a
commit abe695ba9a
13 changed files with 417 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from fastapi import FastAPI
app = FastAPI(
title="My Super Project",
description="This is a very fancy project, with auto docs for the API and everything",
version="2.5.0",
)
@app.get("/items/")
async def read_items():
return [{"name": "Foo"}]