expand docs on get_pydantic

This commit is contained in:
collerek
2021-05-31 19:04:01 +02:00
parent 5cbac6583e
commit 64e4288358
9 changed files with 330 additions and 35 deletions

View File

@ -1,3 +1,4 @@
# Fastapi
The use of ormar with fastapi is quite simple.
@ -14,8 +15,15 @@ Here you can find a very simple sample application code.
It's divided into subsections for clarity.
!!!note
If you want to read more on how you can use ormar models in fastapi requests and
responses check the [responses](response.md) and [requests](requests.md) documentation.
## Quick Start
!!!note
Note that you can find the full quick start script in the [github](https://github.com/collerek/ormar) repo under examples.
### Imports and initialization
First take care of the imports and initialization
@ -210,6 +218,6 @@ def test_all_endpoints():
You can read more on testing fastapi in [fastapi][fastapi] docs.
[fastapi]: https://fastapi.tiangolo.com/
[models]: ./models/index.md
[database initialization]: ./models/migrations.md
[models]: ../models/index.md
[database initialization]: ../models/migrations.md
[tests]: https://github.com/collerek/ormar/tree/master/tests