#openapi to nestjs

8 messages · Page 1 of 1 (latest)

tight steppe
#

Hi there,
Been googling for hours trying to find information on this and failing.

Is there a process (documented) to implement a nestjs api based off of a swagger openapi json file ?

Meaning we’d like to document our api from swagger to start with and use that to generate what is required needed within nestjs and start from there.

And be able to maintain that flow over time.

All documentation I have found work the other way around.
NestJs => swagger.

Thanks for help

flint venture
#

And I believe @nestia/sdk can generate controllers out of swagger. I've never used it though: https://www.npmjs.com/package/nestia#nestiasdk (or maybe it's only the other way around..)

#

It was created by @modest aspen so he might be able to clear any confusion

modest aspen
modest aspen
#

What you want is generating controller classes from the swagger.json documents, right?

May I try it? It seems not hard to implement, if you can accept some broken DTO types.

open snow
#

@tight steppe Have you found a solution pleae ?