Git Product home page Git Product logo

Comments (5)

awtkns avatar awtkns commented on August 22, 2024

@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.

slamer59 avatar slamer59 commented on August 22, 2024

@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.

slamer59 avatar slamer59 commented on August 22, 2024

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.

awtkns avatar awtkns commented on August 22, 2024

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.

slamer59 avatar slamer59 commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.