Beginning Database Programming Using ASP.NET Core 3 by Bipin Joshi

Beginning Database Programming Using ASP.NET Core 3 by Bipin Joshi

Author:Bipin Joshi
Language: eng
Format: epub
ISBN: 9781484255094
Publisher: Apress


Listing 6-9Making Ajax call to the GetAsync() action of Employees API

The code creates a new JavaScript object named options. Then a series of properties are set on this options object. These properties configure the Ajax call made to the Employees API and are summarized as follows (remember that jQuery, being a JavaScript library, is case sensitive):The url property indicates the API endpoint URL. An Ajax request is made to this target URL.

The type property indicates the HTTP verb to be used to invoke the API. In this case, the GET verb is used since you want to call the GetAsync() action of the API.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.