How to create a .Net 6.0 CRUD API

Nathan Rawson
6 min readJul 19, 2022

Super beginner friendly

In this article we will be

· Learning how to create a brand new C# .Net API

· Getting some hands on interaction with our API using the Swagger UI interface

· Adding some new API endpoints.

This article is the first within a series.

The list below outlines the series.

1. How to create a C# .Net API

2. How to Add Entity SQL to a C# API

3. Adding Authentication to a C# .Net API (To be written)

4. Adding Authorization to a C# .Net API (To be written)

5. How to interact with a .Net C# API using React (To be written)

6. Ways to deploy a C# .Net API (To be written)

Prerequisites

· Installed visual studio with support for .Net 6, follow here for instructions on how to get visual studio.

· Understand some basic C# and perhaps some previous knowledge of API’s although I will attempt to make this as beginner friendly as I can.

We need to first create a new .Net API project.

Go to your visual studio and select “create a new project” this should be under the Get started label.

--

--

No responses yet