2 ms·
Yes! Sort of... Most of FastAPI features come from Starlette AND Pydantic. In FastAPI you declare the parameters of your request (including deeply nested JSON
by tiangolo 8y ago
Yes! Sort of... Most of FastAPI features come from Starlette AND Pydantic.
In FastAPI you declare the parameters of your request (including deeply nested JSON bodies) as function parameters.
So, "editor support" here means, for example, autocomplete even for deeply nested models.
Also, you get automatic data validation and serialization. Automatic detailed errors in your API responses.
Also, it has a powerful dependency injection system, that helps in a lot of cases.