> For the complete documentation index, see [llms.txt](https://close.gitbook.io/yun-wei-bi-ji/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://close.gitbook.io/yun-wei-bi-ji/python/fastapi/di-yi-ge-fastapi.md).

# 第一个Fastapi

```python
from fastapi import FastAPI

app = FastAPI()


@app.get('/')
async def root():
    return {
        "message": "Get Hello World"
    }


@app.post('/')
async def root():
    return {
        "message": "Post Hello World"
    }

# @app.put('/')
# @app.delete('/')



# 启动: uvicorn main:app --reload
```
