#web-api
21 articles tagged with #web-api
Lessons Learned: Changing the Team's Mindset Along with the Technology - Part 2
Lessons from changing a Web Forms team’s technology, development process and testing practices, including resistance, Scrum and decision-making bottlenecks.
Lessons Learned: Revamping Web Forms into Web API and AngularJS - Part 1
Lessons from moving Web Forms sites to an ASP.NET Web API and AngularJS SPA, including maintainability, performance, SEO and a reversed WCF decision.
Idempotency in REST APIs - why DELETE twice is still gone
REST API idempotency explained through safe DELETE retries, idempotency keys, action filters, atomic response storage and reliable client retry behaviour.
Fine-grained vs coarse-grained APIs - avoiding chatty APIs
Fine-grained and coarse-grained APIs compared through response shape, client composition, network calls, latency, business views and the cost of chatty requests.
How to secure ASP.NET Web API with OAuth 2.0 bearer tokens (OWIN)?
Securing ASP.NET Web API with OAuth bearer tokens through OWIN, covering token endpoints, external JWT issuers, bearer validation, claims, and authorization roles.
How to document ASP.NET Web API with Swagger?
Documenting ASP.NET Web API 2 with Swagger and Swashbuckle, XML comments, response contracts, and Swagger UI for an explicit API contract.
Single Page Application (SPA) architecture with AngularJS and Web API
Single Page Application architecture explained through AngularJS routes and services, ASP.NET Web API boundaries, token handling, deep links, validation, and trade-offs.
Exception handling best practices in .NET
Exception handling practices for .NET, ASP.NET MVC, and Web API covering swallowed exceptions, stack traces, specific catches, and global error handling.
What is RESTful API - resources, verbs and status codes?
RESTful API design explained through resources, HTTP verbs, safety, idempotence, Web API 2 controllers, and status codes using a news article example.
How to test the application and keep it clean? - Part 12
This article shows how to unit test services, controllers, routes, helpers and the Web API with fakes, write integration tests with a rolled back transaction, and review SOLID in the application.
How to build a Web API with ASP.NET MVC 4? - Part 11
This article builds an ASP.NET Web API for students on the same service, with routing, status codes, content negotiation, validation, dependency injection and a jQuery client.
How to add registration, login, forgot password, change password, profile and logout? - Part 10
This article adds registration, login, logout, forgot password, change password and a profile page, with salted password hashes, account lock, one-time reset tokens and a testable design.
How to use filters, model binding and validation? - Part 9
This article explains action filters and the filter pipeline, model binding sources and validation with data annotations and a custom validation attribute in ASP.NET MVC 4.
How to build the views with layouts, partial views and HTML helpers? - Part 8
This article explains layouts, sections, partial views, child actions, display templates, built-in HTML helpers and custom helpers written with TagBuilder and the Razor helper.
How to remove the repeated code with a base controller, base service and base repository? - Part 7
This article removes repeated code with a base controller, base service and base repository that handle exceptions, common responses, logs and traces using lambda expressions.
How to build CRUD with Razor views and dependency injection? - Part 6
This article builds the student list, create, edit, details and delete screens with a service layer, view models, validation, Post-Redirect-Get and dependency injection with Unity.
How lambda expressions, extension methods, delegates and events reduce the code? - Part 5
This article explains delegates, lambda expressions, extension methods and events in C#, and uses them for paging, filtering and enrollment notifications in the student application.
How to model the data with Entity Framework and LINQ? - Part 4
This article models students, courses and enrollments with Entity Framework 5 Code First and queries them with LINQ, explaining deferred execution and the path from LINQ to SQL.
How does routing work, with custom, nested and area routes? - Part 3
This article explains ASP.NET MVC routing with constraints, custom route constraints, nested routes, URL generation and areas, with screens and the real route table.
How does an ASP.NET MVC request work from .NET 4.0 to 4.5? - Part 2
This article follows one ASP.NET MVC request from routing to the Razor view, and explains what changes between .NET 4.0 and 4.5, mainly the async actions.
How to structure an ASP.NET MVC application? - Part 1
This article defines the Student Management System, explains the MVC pattern and shows how to split an ASP.NET MVC 4 solution into layers where the dependencies point towards the domain.