⭐ Add Swagger UI and Data Validation from OpenAPI Contract with Node.js + Express.js + TypeScript

preview_player
Показать описание
This video shows you how to create a solid API contract and enforce it in a REST API. Starting with an OpenAPI document, you can create a Swagger UI and perform data validation automatically without writing custom data validation functions.

00:00 Intro
2:00 Install Libraries
3:10 Create OpenAPI Document with swagger-jsdoc
8:11 Create TypeScript Types with openapi-typescript
10:25 Update API with Data Transfer Object
15:58 Test API
16:16 Validate Requests and Responses with express-openapi-validator
19:15 Create Development Script
21:00 Create Swagger UI with swagger-ui-express
23:04 Summary

Related videos:

GitHub:
Рекомендации по теме
Комментарии
Автор

Thank you so much for sharing this video. You are very talented. I look forward to more videos from you. Great job!

liquidthought
Автор

very useful video, but i came here for swagger-jsdocs, so try adding some milestones in the video, describing which length belongs to which topic to save the user's time. Thank You!

yes
Автор

This video and the associated repository is extremely useful, thank you very much.

I have follow up questions related to the "Paths" auto generated Interface and JWT authentication. Both are important to my university project. Are you open to doing consulting?

serhiy