|
5 | 5 | [](https://www.codacy.com/gh/LuisLuii/FastAPIQuickCRUD/dashboard?utm_source=github.com&utm_medium=referral&utm_content=LuisLuii/FastAPIQuickCRUD&utm_campaign=Badge_Grade) |
6 | 6 | [](https://coveralls.io/github/LuisLuii/FastAPIQuickCRUD?branch=main) |
7 | 7 | [](https://circleci.com/gh/LuisLuii/FastAPIQuickCRUD/tree/main) |
8 | | -[](https://pepy.tech/project/fastapi-quickcrud) |
9 | 8 | [](https://pypi.org/project/fastapi-quickcrud) |
10 | 9 | [](https://pypi.org/project/fastapi-quickcrud) |
11 | 10 | [](https://badge.fury.io/py/fastapi-quickcrud) |
|
16 | 15 |
|
17 | 16 |  |
18 | 17 |
|
19 | | - |
20 | 18 |
|
21 | 19 |
|
22 | 20 |
|
@@ -62,8 +60,8 @@ I believe that many people who work with FastApi to build RESTful CRUD services |
62 | 60 | `FastAPI Quick CRUD`is developed based on SQLAlchemy `1.4.23` version and supports sync and async. |
63 | 61 |
|
64 | 62 |  |
| 63 | + |
65 | 64 |
|
66 | | -## [Developing](https://github.com/LuisLuii/FastAPIQuickCRUD/issues/9) |
67 | 65 |
|
68 | 66 |
|
69 | 67 | ## Advantages |
@@ -117,7 +115,7 @@ pip install asyncpg |
117 | 115 | ``` |
118 | 116 |
|
119 | 117 | ## Usage |
120 | | - |
| 118 | +run and go to http://127.0.0.1:port/docs and see the auto-generated API |
121 | 119 | ### Simple Code (or see the longer ([example](https://github.com/LuisLuii/FastAPIQuickCRUD/blob/main/tutorial/sample.py)) |
122 | 120 |
|
123 | 121 |
|
@@ -348,6 +346,9 @@ uvicorn.run(app, host="0.0.0.0", port=8000, debug=False) |
348 | 346 | - exclude_columns: `list` |
349 | 347 | > set the columns that not to be operated but the columns should nullable or set the default value) |
350 | 348 |
|
| 349 | +- foreign_include: `list[declarative_base()]` |
| 350 | + > add the SqlAlchemy models here, and build the foreign tree get one/many api (don't support SqlAlchemy table) |
| 351 | + |
351 | 352 |
|
352 | 353 | - dynamic argument (prefix, tags): extra argument for APIRouter() of fastapi |
353 | 354 |
|
@@ -699,7 +700,7 @@ If there are no users in the system, then, in this case, you should return 204. |
699 | 700 |
|
700 | 701 |
|
701 | 702 | ### TODO |
| 703 | +[milestones](https://github.com/LuisLuii/FastAPIQuickCRUD/milestones) |
702 | 704 |
|
703 | | -- Upsert operation for each SQL |
704 | 705 |
|
705 | 706 |
|
0 commit comments