{"repo":"Manweill/swagger-axios-codegen","free":true,"listed":false,"github":"https://github.com/Manweill/swagger-axios-codegen","clone":"git clone https://github.com/Manweill/swagger-axios-codegen.git","description":"swagger client to use axios and typescript","language":"TypeScript","stars":311,"topics":["swagger","axios","typescript","codegen","openapi","fly","javascript"],"license":"MIT","category":"dev-tools","readme_excerpt":"swagger-axios-codegen A swagger client uses axios and typescript ￼ ￼ it will always resolve axios.response.data or reject axios.error with Promise support other similar to axios library, for example Fly.js, required setting ISwaggerOptions.useCustomerRequestInstance = true the es6 version is generated by calling typescript Welcome PRs and commit issue By the way. you can support this repo via Star star sta st s... ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ Example ChangeLog Contributing Get Started use local swagger api json use remote swagger api json use static method before after use custom axios.instance use other library filter service and method fliter by multimatch using 'include' setting If you are using special characters in your service name (which is the first tag) you must assume they have been escaped. For example the service names are MyApp.FirstModule.Products , MyApp.FirstModule.Customers , MyApp.SecondModule.Orders : use class transformer to transform results This is helpful if you want to transform dates to real date objects. Swagger can define string formats for different types. Two if these formats are date and date-time If a class-transformer is enabled and a format is set on a string, the result string will be transformed to a Date instance // swagger.json Resulting class: The service method will transform the json response and return an instance of this class use validation model The option above among with class model mode allows to render the model validation rules. The result o","default_branch":null,"files":null,"tree":[],"storefront":"/r/Manweill","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Manweill/swagger-axios-codegen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}