I have few point on which I'm confused -
- If both uses same, How they are differ?
- If not then what they use internally to communicate with server partially?
- Which one is good for faster execution/performance?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Dec 30, 2019, 1:37 AM
REST on the other hand stands for Representational State Transfer call is an HTTP request. Though it can be used to handle regular browser calls (like form submits) and return full HTML pages, it's usually used to handle API calls that return only data (usually in JSON format).
Which one is good?
In this case you have to think about the amount of data used in your request. If you have only few elements you could have them all in your page and just use javascript to show the appropiate ones. A second option could be using a REST call with JSON as respresentation because it's easy to use with javascript and very lightweight which of course would also mean doing AJAX.