Designing a Web API

We’ve got to live, no matter how many skies have fallen.

— D.H. Lawrence, “Lady Chatterley’s Lover”

In the context of ASP.NET Core, the term “web API” finally gets its real meaning without ambiguity and need to explain the contours further. A web API is a programmatic interface made of a number of publicly exposed HTTP endpoints that typically (but not necessarily) return JSON or XML data to callers. A web API fits nicely in what today appears to be a fairly common application scenario: a client application needs to invoke some remote back end to download data or request processing. The client application can take many forms including a JavaScript-intensive web page, a rich client, or a mobile application. In this ...

Get Programming ASP.NET Core, First edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.