Files
fastapi/docs/src/application_configuration/tutorial001.py
Sebastián Ramírez 6b9931f882 Add tests for metadata
2018-12-22 18:47:05 +04:00

13 lines
263 B
Python

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"}]