
You have taken the right decision by choosing this course to get started with OpenAPI! At the end of this lecture, you will have a good overview of how this course is organized and what to expect out of this course.
This lecture is part of the course "Hands-on ASP.NET Web API - Build API from Scratch!", a guide to design web APIs that follow REST principles using a step-by-step approach.
Explore the client–server request workflow of a web API, including a get /courses call processed by a database repository, returning 200 ok or 500 internal server error.
Explore the http request-response cycle and core web api operations (get, post, put, delete, patch) along with common status codes for success and errors in a college management system project.
Delete the weather forecast controller and create a new courses controller derived from the controller base class, adding a constructor for dependency injection plus the controller and route attribute.
Implement the get all courses operation in an in-memory CMS repository using a DTO mapping strategy, exposing via ASP.NET Core Web API and validating with Postman on port 5000.
Build an ASP.NET Core web API by creating a controller with routing, define actions with HTTP verbs, inject repositories (including in-memory), and map data models to DTOs to fetch courses.
Use action result of T to return any type, with implicit cast handled by ASP.NET; for enumerables, return a list of T to support status codes, including internal server error.
Implement get operation to fetch a course by id via http get route, validate existence, retrieve a course from the repository, map to the course model, and test with postman.
Implement get, put, and delete operations for an individual item using http get with route parameters and simple Linq queries. This section completes the item APIs and previews association APIs.
Explore association APIs in a web API by exposing collection endpoints tied to items, using get and post to fetch related data like students in a course, with delete optional.
Add versions to actions within a controller by duplicating actions and mapping them to specific API versions, such as 3.0, 2.0, or 1.0.
ASP.NET Web API is a highly sought-after topic in the ASP.NET world. The usage of Web API is taking the world by storm. Companies such as Netflix, Spotify, Tesla, and Amazon use APIs to connect front-end and back-end functionality at a large scale. You will be learning these RESTful Web API concepts from scratch in this course.
Topics Covered In This Course:
Understand Web APIs in ASP.NET Core.
Learn RESTful Web API request workflow, HTTP status codes, and different parts of a web API request.
Master API Controller concepts that include what controllers are, attributes, and their significance in ASP.NET Web API development.
Build a new RESTful API for a case study through step-by-step instructions.
Know API return types in ASP.NET Core Web API: IActionResult and ActionResult<T>.
Utilize AutoMapper to enhance your ASP.NET MVC Web API project.
Understand Web API operations such as GET, POST, PUT, and DELETE for collections and individual items.
More Reasons To Take This Course:
APIs are consuming the entire world in every field.
RESTful APIs are the 1st choice among API developers while working with APIs.
Get ahead of the curve and easily learn to build ASP.NET Web APIs.
This course provides over 2 hours of content along with practice activities. To help you better, it follows a step-by-step approach to building an ASP.NET Web API project from scratch.
At The End Of This Course:
You will know how to create a Web API project in ASP.NET Core from scratch.
This course will provide significant knowledge of implementing API for your next RESTful API-related project. You will surely use the building concepts easily by following a step-by-step approach. You will be confident to instantly apply the ASP.NET Web API tips covered in the course.
Enroll now to get started.