Hands-On .NET Web API Documentation with Swagger/OpenAPI
Video description
A step-by-step approach to documenting an ASP.NET Web API project from scratch with Swagger/OpenAPI
About This Video
Understand the steps involved in documenting API with multiple versions by creating one document
Learn the process of documenting an ASP.NET Web API project from scratch
Explore various approaches available for documenting a web API, such as XML comments, data annotations, and more
In Detail
ASP.NET Web API is …
Hands-On .NET Web API Documentation with Swagger/OpenAPI
Video description
A step-by-step approach to documenting an ASP.NET Web API project from scratch with Swagger/OpenAPI
About This Video
Understand the steps involved in documenting API with multiple versions by creating one document
Learn the process of documenting an ASP.NET Web API project from scratch
Explore various approaches available for documenting a web API, such as XML comments, data annotations, and more
In Detail
ASP.NET Web API is one of the hot topics in the ASP.NET world and many companies use APIs to connect front-end and back-end functionality at a large scale. What is the key element in such integrations? You need to document your web APIs so that they can be understood easily by developers.
In this course, you will be learning about web API documentation using Swagger/OpenAPI concepts from scratch in this course.
You will understand OpenAPI/Swagger and the need for documentation in web API. Learn the various approaches available for documenting a web API, including XML comments, data annotations, and so on. Also, we will use Swagger and Swagger UI tools from the OpenAPI community to create a rich API document.
Then, create an OpenAPI document using Swashbuckle and NSwag in ASP.NET Web API. Learn how to use web API analyzers to guide you in including appropriate attributes for achieving complete documentation and web API conventions to automate and quickly document APIs with minimal effort. Next, understand the steps involved in documenting an API with multiple versions by creating one document per-version.
By the end of this course, you will know how to document a web API project in ASP.NET Core using Swagger/OpenAPI from scratch.
Audience
This course is designed for backend web developers who want to build web services that are consumed by internal teams or external third-party teams. It is also useful for software architects who want to assist fellow developers to implement RESTful web API in their projects.
For this course, one needs basic knowledge of building web API in ASP.NET Core and basic knowledge of OpenAPI/Swagger specification.
Chapter 4 : Adding Documentation Using Swashbuckle
Introduction
Step 4: Add OpenAPI Metadata
Step 5: Enable Documentation Using XML Comments
Step 6: Add Documentation Using XML Comments
Step 7: Add Data Annotations
Handling Compiler Warnings
Summary
Chapter 5 : Creating OpenAPI Using NSwag
Introduction
Install NSwag
Configure NSwag
Add SwaggerUI
Summary
Chapter 6 : Using Web API Analyzers
Introduction
What are Web API Analyzers?
Step 8: Enable Web API Analyzers
Step 9: Add Annotations as Per Warnings
Summary
Chapter 7 : Using Web API Conventions
Introduction
What are Web API Conventions?
Step 10: Applying Web API Conventions
Step 11: Update Action Names as Per Conventions
Step 12: Create Custom API Conventions
Attributes Versus Conventions: Which One to Use?
Summary
Chapter 8 : Documenting API Versions
Introduction
Step 13: Enable API Versioning
Need for Handling Version During Documentation
Step 14: Add Support for Multiple Versions
Step 15: Add Document for Each Version
Using Generic Version Handler
Summary
Start your Free Trial Self paced Go to the Course We have partnered with providers to bring you collection of courses, When you buy through links on our site, we may earn an affiliate commission from provider.
This site uses cookies. By continuing to use this website, you agree to their use.I Accept