Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 177
  • 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: 5235
143
  • 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: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for clearing the doubt.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!