Coder Social home page Coder Social logo

Parameters injection about nubes HOT 3 CLOSED

aesteve avatar aesteve commented on June 9, 2024
Parameters injection

from nubes.

Comments (3)

aesteve avatar aesteve commented on June 9, 2024

Standard parameters are injected with QueryParam, PathParam

Next step : marshall requests body as a "backing object" with a user provided marshaller (and defaults implementations : Boon for JSON, manually for XML ?)

from nubes.

aesteve avatar aesteve commented on June 9, 2024

TODO :

  • handle a lot more object types out of the box : Decimals, Dates, Enums
  • Something like : @RequestBody("some.node") MyObject stuff => populate by reflection (or a lib like boon for Json)
  • handle FormParam or even better FormBackingObject (same kind of stuff than above)
  • handle fileuploads (maybe not... will need for the whole file to be transferred, ...) Especially if users just want to store some data to the disk. Or maybe just provide a @StoreTo kind of annotations so that we just write some efficient FileUpload facility

from nubes.

aesteve avatar aesteve commented on June 9, 2024

Done :

  • Param for both query and forms params (i.e. context.request().params())
  • Params for backing a set of params onto an object by reflection
  • RequestBody to unmarshall request body in case it's an API
  • automatically attach bodyhandler to every POST and PUT requests

from nubes.

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.