Is it possible to invoke an ajax request request (xmlhttprequest) as a web service request?

I just started using angularjs with spring mvc as a backend. I use $resourceto access my server. I know that this is a recreation service, and $resourceis a module built using ajax. My doubts:

1) Is ajax used to use apis web service only?
2) Is ajax the only way to call a web service function?

+4
source share
1 answer

1) Is ajax used to use apis web service only

, ajax - HTTP/HTTPS, , , , -/API.


2) ajax -.

, , - , , HTTP/HTTPS, , , http://www.mywebservice.com/api/get/1 , -, .

+3

Source: https://habr.com/ru/post/1690974/


All Articles