Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

web service operation best practice  RSS feed

ross bertolonoi
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone
I need your advise on general Webservice interface design.

Basically I need to know if I should have one operation with a parameter called rule as input and then the web-service impl will decide what kind of logic to execute based on the value of the rule parameter or have multiple operations for each rule?
For instance :
One single operation
myoperation(String rule, ....) and rule can have values such as rule1, rule2 . The WS impl will look at the value of the rule and execute some logic.
vs .
Having multiple operations

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!