ASP.NET Web API: Building RESTful Applications with the .NET Framework, Lecture notes of Computer Science

ASP.NET Web API is a framework for building RESTful applications on the .NET platform. It focuses on HTTP and provides features such as modern HTTP programming model, content negotiation, query composition, model binding and validation, routes, filters, and testability. Web API is part of ASP.NET and supports various data formats including JSON and XML.

Typology: Lecture notes

2020/2021

Uploaded on 04/25/2021

ghost-why
ghost-why 🇮🇳

1 document

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASP .NET WEB API
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download ASP.NET Web API: Building RESTful Applications with the .NET Framework and more Lecture notes Computer Science in PDF only on Docsity!

ASP .NET WEB API

What is Web API?

  • API – “Application Programming Interface”
  • Frameworks that makes it easy to build HTTP services
  • Platform for building RESTFUL applications on the .NET framework using ASP.NET stack
  • WCF → Care about transport flexibility
  • Web API → Care about HTTP

Why Web API?

Why Web API?

Web API Features (1)

  • Modern HTTP Programming Model
    • Access to strongly typed HTTP object model
  • Content Negotiation
    • Client and server work together to determine right format for data
    • Provide default support for JSON, XML and Form URL-encoded formats
    • We can add our own formats and change content negotiation strategy

Web API Features (2)

  • Query Composition
    • Support automatic paging and sorting
    • Support querying via the OData URL conventions
  • Model Binding and Validation
    • Combine HTTP data in POCO models
    • Data validation via attributes
    • Supports the same model binding and validation infrastructure as ASP.NET MVC

References

  • https://blogs.msdn.microsoft.com/martinkear n/2015/01/05/introduction-to-rest-and-net- web-api/