Welcome Guest, Not a member yet? Register   Sign In
Web Services Pattern?
#1

[eluser]jtmgdevelopment[/eluser]
All,

I am creating an app that will use a 3rd party web service for 95% of all data exchange from the end user. I am using Spark Rest/Curl libraries for the api calls.

My question is where should I place these calls to the webservices? Should I place them in the controllers or should I created models that will represent the api calls?

Thanks for any help.
#2

[eluser]jmadsen[/eluser]
When I've worked on similar things, we have used a library for the actual api calling code, and done the rest of the work from a controller. If this data needs to be passed to your db, then add a model for it
#3

[eluser]jtmgdevelopment[/eluser]
Can you explain the "using a library for the actual api calling code" in more detail. I appreciate it.




Theme © iAndrew 2016 - Forum software by © MyBB