Source: Fastapi Metadata and Docs URLs

← Rendered

markdown source:

---
description: Определение метаданных в fast api
tags: fastapi python
title: Fastapi Metadata and Docs URLs
---
```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"}]
```

![img](../attachments/2021-04-09-15-40-02.png)

Строки документации так-же выводятся в [[swagger]]

[Metadata and Docs URLs](https://fastapi.tiangolo.com/tutorial/metadata/). Так же описывается присваивание тегов и урлы для документации.

[[fastapi]]


[swagger]: swagger "Swagger"
[fastapi]: fastapi "Fastapi"