I have created a Web API that is working from the address line of my browser, but when I try to write AngularJS or jQuery calls they fail with no explanation. I think I don't have the correct route in the URL, or maybe it's a JSON formatting problem. I had an earlier version of the Web API and the same calls from AngularJS or jQuery worked. But in that earlier version I had declared the action in the route. Then I read in a RESTful Web API it's best practice to omit the action in the route and base the route off the HTTP method. So I rebuilt the Web API to do it that way, but now I can't reconnect on the client side. Can someone see the error in my URL route? You can test the URL in this example and see the data in your browser.
Note: I think I have solved this problem. I need to add a JSON formatter in my new Web API. It was in my first version. That is the only difference I have found so far.
var sURL2 = "http://stevegaines.info/api/Securities?SecurityType=CASH";
$http.get(sURL2)
.then(function (oData)
{
alert("oData = " + oData);
$scope.Securities = oData;
}, function (response)
{
alert("error = " + response.statusText);
});