Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
Ranch Hand
Posts: 173
  • 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: 4678
117
  • 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: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for clearing the doubt.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!