JavaJamie
5 years agoFrequent Visitor
Swagger-client - Recommended usage/creation of SwaggerClient
Hi all. I'm completely new to using Swagger, and I'm trying to refactor our React project to use our Swagger schema-generated Spring Boot API. I want to create the SwaggerClient once inside a fil...
- 5 years ago
Depending on how you need to use SwaggerClient, you may not need to instantiate a new instance of SwaggerClient. Instead, you can import SwaggerClient, then directly access SwaggerClient methods. You can find some examples here: https://github.com/swagger-api/swagger-js/tree/master/docs/usage