Automatically Generate Swagger Docs With ExpressJS & NodeJS

preview_player
Показать описание


📚 Concepts & technologies covered
- ExpressJS
- Swagger
- OpenAPI

🌎 Follow me here:
Рекомендации по теме
Комментарии
Автор

Needed to understand Swagger for work, and this was the first video that popped up, so happy that it was this guy! Normally some obscure old video that pops up.

Bateleur
Автор

Man, your work is extraordinary. It helped me a lot develop my skills during the past few months i have been watching your videos. Although your channel is not that popular as an advice and for motivation you should definitely continue what you are doing and for sure it will pay off. Regards!

mashinataFC
Автор

Mr. TomDoesTech, I'd like to thank you for your work. I've just changed from Spring Boot to TS and express, and your channel is a knowledge gold mine for me! Also, let me tell you that your code is clean and easily readable.

panthonyy
Автор

I appreciate you taking to the time to produce this video.

As a cautionary note: the portion of the definition defining securitySchema actually belongs within the definition node of the specs document. It is not outside the definition node as you wrote it. This is why the "Authorize" portion of the UI did not show up in your example.

Otherwise, thank you for your time and efforts.

guyswartwood
Автор

This video is just wonderful! Thank you so much!

fresk
Автор

Amazing Job man. Thank you . Keep it up

vigilantedevil
Автор

For anyone trying to use authentication: there is a typo. It should be securitySchemes instead of securitySchemas. You will not receive an error code. The authorize button will just not show up.

CoenNijenhuis
Автор

Thank you for making a wonderful video 👍

huutamnguyen
Автор

After seeing this, Iam happy that Iam using nestjs it makes my life easy.
I have to build a simple restapi using express and man this is a nightmate to write all those docs by hand

bige
Автор

Nice video, but I want to how to enable authentication I followed your tutorial but my authentication button is not created also lock icons on each Api are not responding anything, can you please guide me about that?

rafatanzeem
Автор

Great video, Thanks a lot. I saw that there is no Authorize button, change securitySchemas to securitySchemes, and it will appear.

bektodedic
Автор

why you have called swagger docs function inside app.listen callback?

saurabhchauhan
Автор

@types packages should be a dev dependency (e.g. add with `yarn -D @types/swagger-jsdoc`)

BirgerBurgerBargir
Автор

what switches do you have on your keyboard?

wnchester
Автор

I didnt understand path for routes. what base it is taking ? According to your folder struct, swagger.ts lies at while .. .. routes.ts lie at root level of src foler i.e. root-project=>src=>routes.ts .... so, the path should not be like '../routes.ts' ??

activeengineer
Автор

To be honest, this fucks up the whole source code

Yalchin
Автор

You keep hitting semicolon by accident... at the rate you're going you may as well just put them on the ends of your lines. :P ;)

edgeeffect
Автор

thats not automatic, you should define each property in comment. its repeatedly writing

luckyardhika
Автор

what if we are using an SQL or ORM instead of Mongo? Do the schemas work?

worldwide
visit shbcf.ru