Working with Minimal APIs
In this chapter, we will try to apply some advanced development techniques available in earlier versions of .NET. We will touch on four common topics that are disjointed from each other.
We’ll cover productivity topics and best practices for frontend interfacing and configuration management.
Every developer, sooner or later, will encounter the issues that we describe in this chapter. A programmer will have to write documentation for APIs, will have to make the API talk to a JavaScript frontend, will have to handle errors and try to fix them, and will have to configure the application according to parameters.
The themes we will touch on in this chapter are as follows:
- Exploring Swagger
- Supporting CORS
- Working with global API settings
- Error handling