
Kick off your journey to design and build RESTful APIs with ASP.NET Core Web API, guided by a Microsoft MVP from start to finish.
Learn to build a RESTful API with ASP.NET Core 5.0, covering CRUD operations, SQL Server integration, content negotiation, routing, migrations, and JWT-based authorization for a cinema app.
Define api as an application programming interface, show how it acts as a messenger handling requests and responses, and introduce restful api development with asp.net core.
Create a web api project in Visual Studio using the api template for dotnet core 5.0, name it cinema api, and explore the restful apis architecture.
Explore the project architecture of a .NET core web api, inspecting the solution window, dependencies, and startup settings. Learn how secrets are stored and which starter files to keep.
Explore the program.cs and startup.cs files in an ASP.NET Core 5.0 app, showing how the main method builds the host, registers services (DI), and configures the request pipeline with middleware.
Understand the rest verbs get, post, put, and delete and how they map to read, create, update, and delete operations, with Postman for testing.
Add a model folder named models in the web api project, then create a Movie class with properties Id, Name, and Language to organize and define API data structures.
Create a new controller in asp.net core 5.0 by adding an empty controller and following the convention that the name ends with controller, to learn how controllers function from scratch.
Implement an HttpGet method in an ASP.NET Core 5 REST API to return a hard-coded list of movies from a movies controller, using the HttpGet attribute and IEnumerable.
Implement a post method to add a movie from the body via postman to api/movies, store it in a static in-memory list, and verify with a get request.
Use the http put request to update a database record by id. Pass the id and the updated movie object to the specific record using the put attribute in postman.
Implement a delete endpoint that removes a movie by id using a void return and http delete attribute, calling a helper to delete the record and testing with postman.
Explore the code first approach to create the database and tables from your model classes using the Entity Framework, and compare it with the vista approach.
install two NuGet packages to connect SQL Server with the web API and enable real-time data access in an asp.net core project.
Learn the code-first approach in entity framework by configuring a cinema db context, defining a movies DbSet, and building a CRUD API controller that interacts with a SQL Server database.
Configure a database connection string, register the cinema db context in the service container, and connect to a SQL Server database named cinema.
Learn how the ensure created method builds the database schema from the cinema db context and verify the movies table via a basic get operation.
Explore the overloaded get methods in our ASP.NET Core 5.0 project, fetching all movies or a single movie by id using the Find method on the D.V. context.
Explore implementing the post method by passing a movie object to the db context, calling a helper, saving changes, testing with postman, and verifying a new record.
Master how to handle a put request in ASP.NET Core by updating a movie record via the db context and save changes, demonstrated with a Postman payload.
Learn to implement delete in a RESTful API using ASP.NET Core 5.0, by locating a movie with the db context, removing it, saving changes, and testing the delete operation locally.
Explore how http status codes from web servers identify problems with resources, review common codes, and apply status codes in your restful api built with asp.net core 5.0.
Learn to implement a get endpoint in asp.net core 5.0 and return status codes with IActionResult. Use Ok for 200, BadRequest for 400, NotFound for 404, and StatusCode for custom codes.
Implement the post method to return 201 Created via IActionResult, and verify the created record using Postman.
Learn how to implement status codes in a put request with asp.net core 5, updating records, returning success messages, and handling not found cases with user-friendly feedback.
Learn to handle status codes in delete requests by returning action results and a 'record deleted' message after passing the id, including non-existent record checks.
Learn how RESTful APIs use content negotiation in ASP.NET Core to let clients choose response formats via the Accept header, such as json or xml.
Learn how to implement content negotiation in asp.net core web api by using media type formatters to return json or xml based on accept headers.
Explore code first migrations, why they are needed when adding a new property like movie rating, and how ensure created versus migrations address invalid column name errors.
Delete the database and remove unnecessary data before applying the first migration. In the next lesson, create a database and schema using migrations.
Create and apply database migrations using the package manager console, install the EF Core tools package, run add-migration, then update-database to initialize the database and schema.
Add data to the database via post requests or direct SQL, verify with get requests, then update records with put, ensuring all fields including rating update in the movies controller.
Configure the wwwroot folder and apply the static files middleware in ASP.NET Core 5.0 to enable uploading and accessing static content through a RESTful API.
Upload images through a web api using form data, save files in the wwwroot folder with unique guid names, avoid storing images in the database, and retrieve via get.
Store image paths in the database by adding an image property to the movie model, migrating, and updating the controller to save a cleaned image path without the wwwroot prefix.
Update a movie record with ASP.NET Core's put method, reusing post logic, handle optional image updates from body and form data, verified with Postman.
Explore model validation in a restful api built with ASP.NET Core 5.0, learn why backend validation matters, and prevent null or empty data from reaching the database.
Enforce model validations in web api by using data annotations, such as the required attribute on the movie name, and customize error messages to enforce complete, valid data.
Learn attribute routing in ASP.NET Core 5 by adding an HTTP Get method accepting an int parameter, returning it, and observing conflicts when two Get methods share the same signature.
Resolve routing ambiguity in web api by applying attribute routing to differentiate get methods, expose api/movies and api/movies/{id} endpoints, and support post/put/delete actions.
Welcome to the Complete Real World Restful API's course with Asp .NET Core 5.0.
This course is made with .Net Core 5.0 which is the latest but you can also use the previous version of .NET Core 3.1 if you want.
The main focus of this course is on the Restful Web Api via Asp .NET Core and C#. So if you're familiar with C# , Asp.Net and Entity Framework Or if you want to create the Restful web api's in Asp.Net then this is the right course for you.
If you don't have any idea about Rest Api then don't worry because in this course we'll cover all the Rest Api concepts.
By getting this course, you can be rest assured that the course is carefully thought out and edited. And I'm always happy to make the helpful content for the students.
So by the end of the course, you'll completely understand:
How to create a Rest Api via Entity Framework Code First Approach with all the advanced functions.
Implement Status Codes
How to add the Routing and Custom Methods
Adding Migrations in Web Api's
Adding Content Negotiation
Implement Validation in Web Api's
File Uploading in REST API"S
Implement Authentication and Authorization and secure your Api with JWT
Implement Role Based Authorization For User and Admin
Create SQL Database on Microsoft Azure
Deploy Web Api on Microsoft Azure
Create API Documentation
Create A Real World Cinema Api From Scratch to End (No Copy paste code I'll explain you each and every single line of code so that you can create a complete Real World Apis in Asp.Net Core happily)
This is not a short course this is a complete guide to make real world Restful Api's from start to end. So if you're a busy kind of developer and wanna learn things quickly from scratch then take this course.
Remember...
After this course you'll get all the Source Code and along with this I'll also share the links and helping material for the Rest Api's with you but you need your personal Azure Portal where you can launch your web api.
So what are you waiting for? Click the buy now button and join the world's First Complete Rest Api's Course with Asp.Net Core and C#.