Using OpenAPI/Swagger for Testing and Code Generation in ASP.NET Core 2
Testing an API improves its reliability. Generating client-side code helps with getting started fast when building a client that consumes your API. OpenAPI can help with both. In this course, you'll learn how.
What you'll learn
Testing an API improves its reliability. Generating client-side code helps with getting started fast when building a client that consumes your API. OpenAPI can help with both. In this course, Using OpenAPI/Swagger for Testing and Code Generation in ASP.NET Core, you will gain the ability to test an API and generate code from it. First, you will learn what OpenAPI (Swagger) is. Next, you will discover how it can help with code generation. Finally, you will explore how to test your API, from manual to automated and command-line testing. When you’re finished with this course, you will have the skills and knowledge of .NET Core and OpenAPI needed to test your API and generate client-side code from it.
Table of contents
- Coming Up 1m
- Learning Why Client-side Code Generation Can Be Beneficial 3m
- Tools for Client-side Code Generation (Part 1) 1m
- Demo - Client-side Code Generation with Swagger CodeGen 5m
- Tools for Client-side Code Generation (Part 2) 1m
- Demo - Generating DTO Classes with NSwagStudio 5m
- Demo - Generating a Client with NSwagStudio 4m
- Summary 1m
- Coming Up 1m
- The Importance of API Testing 3m
- Introducing Postman 1m
- Demo - Generating Postman Requests from an OpenAPI Specification 3m
- Writing and Automating API Tests with Postman and Newman 2m
- Demo - Writing Your First API Tests with Postman 3m
- Knowing What to Test For 4m
- Exploring the Postman Testing API 8m
- Demo - Reusing API Tests Across Requests with Postman 6m
- Demo - Running Test Collections with Postman 1m
- Demo - Automating Test Runs with Newman 4m
- Using HTTP-REPL to Interact with an API from the Command Line 1m
- Demo - Installing HTTP-REPL 2m
- Demo - Using HTTP-REPL to Interact with an API from the Command Line 7m
- Summary 1m