From the course: Building and Securing Restful APIs in .NET
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Creating the API project - .NET Tutorial
From the course: Building and Securing Restful APIs in .NET
Creating the API project
- [Instructor] We've cloned our repository down to the local machine. I'm going to go into a new terminal here, and we are in branch chapter one, movie two, the B meaning we're at the beginning, or the start state, for the first chapter and the first movie. When we get done, all the work that we do, you're going to find in branch chapter one, movie two of the Git repository. So for each of these movies, you'll find both the beginning and end state. We want to create a new web API in my folder here in the repo, so I'm going to .NET command line tool here, new, and then I have to give it a template, so that'll be web API, and I'm going to tell it I want to use controllers rather than a controller list model, and I'm going to give it a name. I'm going to call it LinkedIn Learning time tracking. So that's going to use the .NET SDK that we've got installed. It's going to go out and create me a new web API, and we can see here, I've got a new folder. I've got controllers underneath there…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
REST level set4m 47s
-
(Locked)
Creating the API project7m 13s
-
(Locked)
Creating the database entities7m 14s
-
(Locked)
Creating and seeding the database3m 50s
-
(Locked)
Defining the resources4m 58s
-
(Locked)
Mapping resources and entities3m 52s
-
(Locked)
Setting up the resource controller3m 2s
-
(Locked)
Set up the HTTP test file7m 15s
-
-
-
-
-
-