This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Shankar Goru
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.

"Name": "abc",
"Age": "111"

"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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!