This device is not compatible.

PROJECT


Build a REST API Using ASP.NET Core 6

Learn to build a REST API to perform CRUD operations using ASP.NET and SQL Server.

Build a REST API Using ASP.NET Core 6

You will learn to:

Use .NET6 to create endpoints.

Create endpoints to insert, retrieve, update, and delete records in the database.

Use the Code First approach to create a database in SQL Server.

Handle the responses of the database queries.

Skills

API Development

Web API

Backend Development

Prerequisites

Basic understanding of SQL Server

Familiarity with ASP.NET Core 6

Technologies

C# logo

C#

SQL Server

ASP.NET Core

Project Description

In this project, we'll create endpoints to serve information about different recipes using ASP.NET Core 6. The .NET6 is the LTS (Long Term Support) release in the ASP.NET core series. We'll use the controller-based API development approach of .NET Core's WEB API framework for REST API development. SQL Server will be used to handle database-related operations. SQL Server is an RDBMS (Relational Database Management System) used for storing, managing, and retrieving data. We'll use Swagger (OpenAPI) to describe our REST API through the Swashbuckle.AspNetCore.Swagger package.

Our API will consist of the following endpoints:

  • Post a new recipe

  • Get all recipes

  • Get a recipe by its title

  • Search recipes by ingredients

  • Search recipes by cuisines

  • Update an existing recipe

  • Delete a recipe

Project Tasks

1

Get Started

Task 0: Introduction

Task 1: Develop a Model for the Database

Task 2: Add a Database Context

Task 3: Register DbContext and Create a Database in SQL Server

Task 4: Enable and Include XML Documentation

2

Develop Endpoints for API

Task 5: Add a New Recipe

Task 6: Retrieve All Recipes

Task 7: Filter Recipes by Ingredients

Task 8: Filter Recipes by Cuisine

Task 9: Get Recipes by Title

Task 10: Delete a Recipe

Task 11: Update a Recipe

Congratulations!