java - Reverse Routing Play with POST payload -


i have following use case wanted use reverse routing.

    project        com.xyz.controllers        --> hello.java           -- result sayhello();        --> hellowrapper.java           -- wrapsayhello() 

following routes file :

     post           /hello                 @com.xyz.controllers.hello.sayhello() 

sayhello expects json body in request , reads of using request().body().asjson()

how can 1 use reverse routing , have payload sent in request. see using reverse routing in wrapsayhello() method, can call method this

     routes.hello.sayhello() 

but have no clue on how send in json in request body original method expects

any thoughts helpful ..


Comments

Popular posts from this blog

python - argument must be rect style object - Pygame -

webrtc - Which ICE candidate am I using and why? -

c# - Better 64-bit byte array hash -