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.
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
posted 8 months ago
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