I would like to perform CRUD Operations on WEB API in asp.net using AJAX JQuery.I am very new to web api
Asked
Active
Viewed 493 times
-4
-
1Your question was too broad, you have to do some research and get started. If you have any technical coding problems, please post them here. – ramiramilu Jan 05 '16 at 11:49
-
try to learn from this [post](https://www.c-sharpcorner.com/UploadFile/2b481f/using-crud-operation-in-Asp-Net-web-api/) but he is using knockoutjs instead of jQuery. – j1rjacob Feb 08 '19 at 10:07
1 Answers
0
The Following Code can be used to hit a web api with a GET Request
var url1 = 'http://api.com/customer/1234';
$.ajax({
url: url1,
type: 'GET',
headers: {
'customHeader': 'Value',
'customHeader2': 'Value2'
},
success: function (data) {
alert('Success');
}
});

Rajat
- 410
- 4
- 19