-
Enhancement
-
Resolution: Done
-
Major
-
1.0.0.M8
-
None
Add an additional Route for the '/cars'. There is currently one Route that supports the HTTP POST methods.
This task should add a second route for '/cars' which supports the HTTP GET method and also demonstrates using query parameters and using a custom media type. For example
route() .from("/cars") .on(RequestMethod.POST) .to(Home.class).save(formParam(Car.class)); route() .from("/cars") .on(RequestMethod.GET) .produces(MediaType.JSON.toString(), "application/custom") .to(Home.class).get(param("color", "pink"), param("brand", "mini"));
- is blocked by
-
AEROGEAR-671 Add support for Request Params
- Closed