What you'll learn
This project will use ASP.NET Core with C# to implement a Web API to track celestial objects.
Table of contents
Setup
15m
- Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Add And Configure Middleware in Startup.cs
15m
- Configure your application to use MVC Framework as well as an-in memory database using EntityFramework.
Create CelestialObject Model
30m
- Create the CelestialObject model and add to the ApplicationDbContext to make it accessible to EntityFramework.
Create The CelestialObjectController Class
15m
- Create the CelestialObjectController class and configure and setup a Route as well as set it up to dependency inject our ApplicationDbContext.
Create CelestialObjectController's Get Actions
30m
- Create the CelestialObjectController's GetById, GetByName, and GetAll actions with the appropriate HttpVerbs.
Create CelestialObjectController's Post, Put, Patch, and Delete Actions
1h
- Create CelestialObjectController's Create, Update, UpdateName, and Delete actions with the appropriate HttpVerbs.