Sometimes when using AG Controller we want to bridge our Route to anexisting/legacy endpoint target class. These classes may have methods with parameters othe than String, i.e findById(Long Id) .
This is currently not supported by ag controller. We should be able to pass a type to a param when defining a route like :
route().from("/customers/
{id}
").on(RequestMethod.GET).consumes(JSON).produces(JSON).to(CustomerEndpoint.class).findById(param("id", Long.class));
|