Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Rest webService, how can use @RequestParam, @RequestBody with hashSet  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the rest web service i had two methods:
1 -


2-


I want to merge these two methods in one in order to reduce the hava code, how can i do it ? shall i user @Request param or @RequestBody with a hashSet??

Thanks
 
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jam dok,

Welcome to CodeRanch.

Try this by passing one id instead of a set of ids



If it works, try to pass a set
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!