Using Postman to call Azure REST APIs

Azure REST API
Azure REST API

I had a need to call an Azure REST API and thought I would document that here.  Here are the steps required: Get the Postman app Get your Bearer Token for authentication Configure Postman for calling the Azure Rest API Get the Postman app In this instance I used Chrome and installed the app.  Once…

0

ASP.NET WebAPI results in a 405 Method Not Allowed HTTP response

ASP.NET
ASP.NET

I was working on an IoT project where my device was calling a WebAPI.  I had two methods, one had the signature shown in Listing 1 and the other in Listing 2. UPDATE 6-JUN-2016, check here for some exception handling tips. Listing 1, GET employees [Route(“api/TC/{custId}”)] public IQueryable<EmployeeDTO> GetEmployees(string custId) {  var db = new fhEntities();…

3

Using Entity Framework and Web API, I get a 500 Internal Server Error or a Hang

I was working on some code that used Entity Framework and an ASP.NET WebAPI as the interface for accessing the data.  With my experience so far, when I publish my WebAPI and then access it, the result is a JSON formatted file that I can open or save via a message popup similar to that…

0

Troubleshoot a Web API Self Host performance problem

If you have not tried creating a Self-Hosted Web API, you might give it a shot, here is a good, getting started example.  Once it gets into production, if you are looking for ways to troubleshoot a slow performing self-hosted Web API, searching for a W3WP process to take a memory dump of or applying…

0