• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I use Spring3 framework when combining 2 different REST (using JSON) requests within a single HTTP call? I am using Spring with jackson for JSON conversion. What is the most optimal way of doing it? I am not sure, if it comes under multi-part request.

For example, if I had the following 2 unrelated JSON payloads that I want to combine in a single HTTP call.

"json1":
{
"Name": "abc",
"Age": "111"
}

"json2":
{
"stockName": "xyz",
"stockSymbol": "SS"
}

Once my main controller method handles the initial call, is it then possible to map different additional controller methods for different JSON payloads? I want to understand what is the optimal way of handling such scenarios?

Thanks for the help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic