What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-05 02:54:10
How to call the web api if it is in separate folder
BY LOVE • If your api is in the default Controllers folder so you no need to pass this character / Before the url of ajax function. You can call the api in this way simply. $.ajax({ type: 'GET', url: 'api/Restaurant/Test... Add solution -
Javascript 2021-08-31 12:46:02
Call the web api from $.ajax() function.
1- Calling the web api method without parameter • If you do not have parameter in your web API method then you no need to pass the data parameter inside AJAX function. • The URL parameter of ajax function must match with the Route attribute of ... Add solution