Skills Expanded

Create a StarChart Web API using ASP.NET Core

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.

About the author

Eric is a software developer who is passionate about always learning and improving. When he's not writing code, you'll find him playing computer games, guitar, disc golf, or learning something new. He also takes time to speak at conferences, local user groups, and elementary and middle schools to promote education and self-improvement.

Ready to upskill? Get started