awtkns / fastapi-crudrouter

A dynamic FastAPI router that automatically creates CRUD routes for your models
https://fastapi-crudrouter.awtkns.com
MIT License
1.38k stars 155 forks source link

Use CRUD functions internally #130

Open Zaffer opened 2 years ago

Zaffer commented 2 years ago

Is it possible to the call the CRUD functions inside the application from other parts of the code? How do I do that?

ie:

user = users.get(f"/user/{user_id}")

or something like that?

awtkns commented 2 years ago

Hi @Zaffer, good question! At the moment this in not currently possible.

However this should hopefully possible in the future (would require a small refactor)

ChuckMoe commented 2 years ago

I would really like to see official support for this functionality! It would make some of my use cases so much easier and also solve issue #136 ! Is there any progress on this @awtkns ?