Comments (5)
@slamer59 thanks for this! Did you want to submit this as a PR? If not I can update it :)
I agree with you, some more detailed docs for the memory CrudRouter would be useful.
from fastapi-crudrouter.
@awtkns i can do !
What would be great is that we include exemple with get and post accessing with in Memory backend.
What do you think ?
Unfortunately I don't know how to do. If you give the exemple, I write the full doc.
Thanks !
from fastapi-crudrouter.
I don't know if it a good practice but we can access router models with:
@router.get('')
def overloaded_get_all():
return router.models
@router.get('/{item_id}')
def overloaded_get_one(item_id: int):
return router.models[item_id]
is working.
@awtkns tell me if I add it like that in the documentation or not ?
Thanks :)
from fastapi-crudrouter.
Sorry for taking awhile to reply. I think that would be add good thing to also add, it could definitely be useful :)
Is it ok to close this now @slamer59 ?
from fastapi-crudrouter.
Yes me too.
Do you have time to provide me some snippet for it ?
Not much time on my side but I can try.
from fastapi-crudrouter.
Related Issues (20)
- Non-informative error on creation HOT 3
- Structural error for 404 HTTPException
- Use poetry for dependency management HOT 2
- Insert object with Many-to-many relatioship via sqlalchemy HOT 2
- Support piccolo orm
- Add the possibility to customize the "item_id" parameter name HOT 1
- Are you considering adding authentication/authorization in the future? HOT 2
- All ORMs/backends should allow partial updates
- Allow objects in attributes for create/update routes (sqlalchemy)
- Outdated contribution documentation HOT 1
- Overriding GET route does not properly remove existing route
- Pydantic V2 Support HOT 1
- Allow providing additional parameters to FastAPIs add_api_route() function
- Pydantic V2 incompatibility: FieldInfo object does not have the attribute 'type_' HOT 4
- AttributeError: 'FieldInfo' object has no attribute 'name' HOT 3
- mypy refuses to check
- When Class View is supported
- What is the development status? HOT 3
- 你真是个天才
- value is not a valid dict HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-crudrouter.