Recently I was working on securing ASP.NET Web API HTTP service that will be consumed by a large number of terminal devices installed securely in different physical locations, the main requirement was to authenticate calls originating from those terminal devices to the HTTP service and not worry about the users who are using it. So first thing came to my […]
Getting started with ASP.NET 5 MVC 6 Web API & Entity Framework 7
One of the main new features of ASP.NET 5 is unifying the programming model and combining MVC, Web API, and Web Pages in single framework called MVC 6. In previous versions of ASP.NET (MVC 4, and MVC 5) there were overlapping in the features between MVC and Web API frameworks, but the concrete implementation for both frameworks […]
Decouple OWIN Authorization Server from Resource Server
Recently I’ve received lot of comments and emails asking how we can decouple the OWIN Authorization Server we’ve built in the previous posts from the resources we are protecting. If you are following the posts mentioned below you will notice that we’ve only one software component (API) which plays both roles: Authorization Server and Resource Server. […]
Building OData Service using ASP.Net Web API Tutorial – Part 3
This is the third part of Building OData Service using Asp.Net Web API. The topics we’ll cover are: OData Introduction and Querying Existing OData Service – Part 1. Create read-only OData endpoint using Asp.Net Web API – Part 2. CRUD Operations on OData endpoint using Asp.Net Web API – Part 3 (This Post). Consuming OData Service […]
Building OData Service using ASP.Net Web API Tutorial – Part 2
This is the second part of Building OData Service using Asp.Net Web API. The topics we’ll cover are: OData Introduction and Querying Existing OData Service – Part 1. Create read-only OData endpoint using Asp.Net Web API – Part 2 (This Post). CRUD Operations on OData endpoint using Asp.Net Web API – Part 3. Consuming OData Service […]
Building OData Service using ASP.Net Web API Tutorial – Part 1
In my previous tutorial we’ve covered different aspects of how to Build RESTful service using Asp.NET Web API, in this multi-part series tutorial we’ll be building OData service following the same REST architecture we’ve talked about previously. Before jump into code samples let’s talk a little bit about OData definition and specifications. OData Introduction OData […]
What is New in ASP.Net Web API 2 – Part 2
In the previous post we’ve covered ASP.Net Web API 2 attribute routing, in this post we’ll complete covering new features, we’ll start by discussing the new response return type IHttpActionResult then cover the support for CORS. Source code is available on GitHub. ASP.Net Web API 2 IHttpActionResult: As we talked before ASP.Net Web API 2 has […]
What is New in ASP.Net Web API 2 – Part 1
Asp.Net Web API 2 has been released with the release of Asp.Net MVC 5 since 5 months ago, Web API 2 can be used with .NET framework 4.5 only, the Web API 2 template is available by default on VS 2013 and you can install Web Tools 2013.1 for VS 2012 to have this template […]
Building ASP.Net Web API RESTful Service – Part 11
This is the eleventh part of Building ASP.Net Web API RESTful Service Series. The topics we’ll cover are: Building the Database Model using Entity Framework Code First – Part 1. Applying the Repository Pattern for the Data Access Layer – Part 2. Getting started with ASP.Net Web API – Part 3. Implement Model Factory, Dependency Injection […]
Building ASP.Net Web API RESTful Service – Part 10
This is the tenth part of Building ASP.Net Web API RESTful Service Series. The topics we’ll cover are: Building the Database Model using Entity Framework Code First – Part 1. Applying the Repository Pattern for the Data Access Layer – Part 2. Getting started with ASP.Net Web API – Part 3. Implement Model Factory, Dependency Injection […]