You can make it with Swagger :
First, you have to find a library to document your API with Swagger.
Then you can download a "swagger.json" who describe your API. Import this file in the Swagger Editor (File > Import File) and then on Generate Client select Javascript.
You can also automate this with Swagger Code Gen
You can make it with Swagger :
First, you have to find a library to document your API with Swagger.
Then you can download a "swagger.json" who describe your API. Import this file in the Swagger Editor (File > Import File) and then on Generate Client select Javascript.
You can also automate this with Swagger Code Gen
P.S : Instead of Swagger, you can make the same with GraphQL, OData ...