
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.
Udemy now prompts an early review after a few minutes, encouraging an honest rating to help fellow students decide if the course fits their needs.
Explore the basics of web api requests, client–server workflow, and common api operations. Review http status codes and the CMS Open API specification for a college management system.
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.
Create a new asp.net core web api project with dotnet new web api in a vscode workspace, run on port 5000, and test the weather forecast endpoint with Postman.
Understand how a web API in ASP.NET Core wires its host, services, middleware, and routing from Program.cs and Startup.cs, enabling controllers and swagger by default.
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.
Learn how asp.net core web api controllers derive from the controller base class to handle http requests, and how api controller attributes enable attribute routing, binding, and automatic 400 responses.
Build a collection API with ASP.NET Core. Create a web API project, add a controller with actions, model data, wire a database repository, and implement a get all items operation.
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.
Add http get, http post, http put, and http delete actions to the controller to fetch resources like a courses list, and test the endpoint with Postman.
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 IActionResult in ASP.NET Core to return multiple results, such as okay object result and bad request, and handle exceptions with status 500 while testing via Postman.
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.
Learn to implement asynchronous programming in ASP.NET Core Web API using async and await for get operations, returning results with async task and async enumerable.
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 put operation to update an existing course by reusing get logic, mapping with auto mapper, and updating the repository, then test with postman to verify changes.
Implement the delete operation for an individual course by using an http delete endpoint that accepts a course ID, validates existence, and removes the item from the in-memory CMS repository.
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.
Explore the importance of versioning your web API and how to add versions to controllers and actions in an ASP.NET Core project.
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.
Learn how to implement multiple versioning strategies in a single API using a combined API version reader, supporting both query string and header versioning; ensure consistent versions for reliable requests.
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.