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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Dec 29, 2019, 8:37 PM EST
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.