rest - Using Spring have multiple JSON request (POST) in a single HTTP call -


how can use spring3 framework when combining 2 different rest (using json) requests within single http call? using spring jackson json conversion. optimal way of doing it? not sure, if comes under multi-part request.

for example, if had following 2 unrelated json payloads want combine in single http call.

"json1":  {  "name": "abc",  "age": "111"  }   "json2":  {  "stockname": "xyz",  "stocksymbol": "ss"  }    

once main controller method handles initial call, possible map different additional controller methods different json payloads? want understand optimal way of handling such scenarios?

thanks help.

you have create separate resources , call separately, best approach. in calling place can combine both json output. right trying have method 2 different different return types


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -