filmov
tv
Building a Web API in .NET 6 | Minimal API

Показать описание
In this tutorial we’ll build a Web API in .NET 6 aka Minimal API. With just a few lines of code we can not only setup the endpoints for a fully-fledged CRUD API class, but it sets the tone for an entire enterprise application.
By the end of this tutorial, you will know:
- How to create a Minimal API project
- Create and register services with interfaces
- Expose service methods through the API and subsequently, data through repositories
- Create Web API methods in the Minimal API .NET 6 style
For this tutorial there are two pre-requisites .NET 6 and Visual Studio 2022. But not to worry I’ll show you where to download them from (check out the Useful Links section below). The installation is pretty straight-forward, only follow the recommended installation wizard for both cases.
👍If you enjoyed this tutorial, please like this video consider subscribing for more content like this!
0:00 – Intro
0:30 - Download .NET 6 SDK
0:54 - Download Visual Studio 2022
1:31 - Create Minimal API Project
2:20 - Project Overview
4:19 - Test the endpoint with Postman
6:08 - Add a Data Model
7:25 - Add a Data Repository
8:30 - Add Service Interface
12:58 - Add Service Implementation
17:29 - Setup Minimal API Endpoints
18:51 - Setup Create Minimal API Endpoint
21:40 - Setup Get Minimal API Endpoint
23:06 - Setup List Minimal API Endpoint
23:48 - Setup Update Minimal API Endpoint
25:49 - Setup Delete Minimal API Endpoint
28:52 - Test Minimal API Endpoints with Postman
Useful Links:
Credits:
By the end of this tutorial, you will know:
- How to create a Minimal API project
- Create and register services with interfaces
- Expose service methods through the API and subsequently, data through repositories
- Create Web API methods in the Minimal API .NET 6 style
For this tutorial there are two pre-requisites .NET 6 and Visual Studio 2022. But not to worry I’ll show you where to download them from (check out the Useful Links section below). The installation is pretty straight-forward, only follow the recommended installation wizard for both cases.
👍If you enjoyed this tutorial, please like this video consider subscribing for more content like this!
0:00 – Intro
0:30 - Download .NET 6 SDK
0:54 - Download Visual Studio 2022
1:31 - Create Minimal API Project
2:20 - Project Overview
4:19 - Test the endpoint with Postman
6:08 - Add a Data Model
7:25 - Add a Data Repository
8:30 - Add Service Interface
12:58 - Add Service Implementation
17:29 - Setup Minimal API Endpoints
18:51 - Setup Create Minimal API Endpoint
21:40 - Setup Get Minimal API Endpoint
23:06 - Setup List Minimal API Endpoint
23:48 - Setup Update Minimal API Endpoint
25:49 - Setup Delete Minimal API Endpoint
28:52 - Test Minimal API Endpoints with Postman
Useful Links:
Credits:
Комментарии