A
A
artshelom2021-11-19 08:41:32
ASP.NET
artshelom, 2021-11-19 08:41:32

Are there auto-generators of transport models from the controller?

The project uses an autogenerator of models on the front side for react from the controller.
I tried to find a library for this, but I did not find anything like it. Maybe someone knows? For reactJS (which is typescript) or for Angular

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-11-19
@artshelom

NSwag, for example - it can generate js / ts code according to the swagger / OpenAPI specification.
It also generates an openapi specification for aspnet controllers.
And I was also on one project where a self-written solution was used to solve such a problem - maybe you have a similar situation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question