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

Is every call in a big project a Web Service/REST call?  RSS feed

 
Ranch Hand
Posts: 116
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello experts,
I am confused about the implementation of Web Services in a web/enterprise application project. I want to know if every request made from View page to Controller, is a REST request?
To be more clear, in a big web application, you make a request from the view page like you click a link or submit button, as a response the application will either send record from db or return a view page. As per my understanding, when the application returns a view page then it's not done through the Web Services. But when application has to return just data(object) that is without reloading the current page then only it requires Web Services.

How far my understanding makes sense?
I have this confusion for a long time. It will be a great help if you respond. Thanks in advance.
 
Saloon Keeper
Posts: 4479
112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, if a view is returned, you wouldn't consider it a REST request/response. Of course, plenty of web sites -particularly those implementing SPA- return the data from which the view is constructed as response to an XHR request - those could be considered REST as well. But if the view is constructed fully on the server, HTML and all, and replaces the current view, then it's not.
 
Arun Singh Raaj
Ranch Hand
Posts: 116
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for clearing the doubt.
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
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!