Interested in a private company training? Request it here.
Roy Fielding, the inventor of REST, realized while using the HTTP protocol you can also use HTTP to work with data stored in a database. Here we will look at how REST uses HTTP to serve data instead of web pages.
For .NET developers ASP.NET Web Api is the way to create REST services. Web API is an adapted version of ASP.NET MVC specifically designed for REST. This module serves as an overview of the framework.
On the web the URL decides what the server will do. In ASP.NET Core you will find the End-point Routing Middleware. A solid understanding of this middleware is required to build applications with ASP.NET Core.
In this module we'll take a closer look at the C in MVC. The controller has a very important role to fulfill: It's the component that figures out what to do when receiving a request.
ApiController
Attribute and ControllerBase
ClassIActionResult
and ActionResult<T>
ProblemDetails
class for error reportingGenerally, in WebAPI we will use JSON as the serialization format.
But how can we efficiently convert an object into JSON, and back again?
Here we will look at classes from System.Text.Json
, the latest and fastest JSON serialization library.
People could be sending any data to your API. So you should always validate your input. Here we will look at validation options, and how to send feedback in case of errors.
Security is a world on its own. In this module we'll explore the common techniques to secure your Web API.
When you want to consume a REST service you are dependent on the documentation of the service. And developers don't like to write documentation. No problem: using Swagger you can automatically generate the necessary metadata for describing your service functionalities.
Returning a 202 Accepted status code is easy. When to return it, that's another question. In this topic we'll dive into some best practices to create a properly designed API.
This topic contains some frequently used patterns and techniques when creating more complex APIs.
ASP.NET Web API makes it easy to build REST APIs that reach a broad range of clients, including web and mobile applications. Along with best practices and modern design techniques, this extended 3-day training will guide you towards understanding API architecture, security considerations, and how to build an API with ASP.NET that is both extensible and flexible.
Participants of this course need to have a solid understanding of the .NET platform and have built .NET applications using either C# or VB.NET.