Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

MVC+ external API

$
0
0

Hi all! Tell me is it possible to get data via api on the server side?

That is, on the client side:

$.ajax({
                type: "GET",
                 contentType: "application/json; charset=utf-8",
                 url: "http://192.168.222.40:8082/api/is",               
                 dataType: "json",
                 success: function (data) {
                     console.log(data);              
                     }                                     
             });

but let's say how to get data in the controller?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>