Minimal WebApi .NET 6 (dotnet core 6) — testing using postman, easy REST API

Spencer Thomason
2 min readJun 16, 2022

--

Code Samples:

https://github.com/slthomason/StartupHakk/tree/main/02_Mininum_WebApi_Aspnet_Core

Minimal APIs are architected to create HTTP APIs with minimal dependencies. They are ideal for microservices and apps that want to include only the minimum files, features, and dependencies in ASP.NET Core.

This tutorial teaches the basics of building a minimal web API with ASP.NET Core. For a tutorial on creating a web API project based on controllers that contains more features, see Create a web API.

It ultimately depends on the technology you’re building on but in this series, we’ll be working on .Net/.Net CORE. For that, you either want to use Microsoft Visual Studio or Microsoft Visual Studio Code. Both of them can be downloaded for free from the official website for both Windows and macOS.

You can download both of them and see which one suits your needs. In this video, we’ll create a new project and create a simple Hello World application. It can act as a guide to get familiarized with different aspects of visual studio/code such as the solution explorer and properties.

Visual Studio vs Visual Studio Code

You can think of Visual Studio as a cookie-cutter solution that is jampacked with features and functionality. As Visual Studio is much more powerful, it works in most situations out of the box whereas Visual Studio Code can be considered a Lite version of it with lots of addons available which can ultimately make the two nearly identical. Some might even consider it as a “glorified text editor”. In comparison, Visual Studio does require more knowledge to be utilized to its true potential unlike Visual Studio Code which is more beginner-friendly however, Visual Studio does offer more precise control over everything. At the end of the day, it all comes down to personal preference.

--

--