Closed aesteve closed 9 years ago
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 ?)
TODO :
@RequestBody("some.node") MyObject stuff
=> populate by reflection (or a lib like boon for Json)FormParam
or even better FormBackingObject
(same kind of stuff than above)@StoreTo
kind of annotations so that we just write some efficient FileUpload facilityDone :
Param
for both query and forms params (i.e. context.request().params()
)Params
for backing a set of params onto an object by reflectionRequestBody
to unmarshall request body in case it's an API
For now, we only have the RoutingContext as parameter but, an interesting feature would be to outbox and convert parameters for the end-users and inject it to the method.
Like :
public void search(RoutingContext context, SearchCriteria criteria)
where criteria is instanciated from request parameters.First implementation possible, let user define their class by implementing an interface : fromRequestParams(MultiMap ... blah)` then provide some utility methods upon that.