{"repo":"fardad-dev/swagger-typescript","free":true,"listed":false,"github":"https://github.com/fardad-dev/swagger-typescript","clone":"git clone https://github.com/fardad-dev/swagger-typescript.git","description":"An auto typescript/javascript code generator from swagger.","language":"TypeScript","stars":85,"topics":["typescript","swagger","api","openapi","rest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":":star::star::star: If you would like to contribute, please refer to To do list and a list of open tasks.:star::star::star: Swagger-Typescript: Generate ts/js code from swagger/openApi JSON Support OpenApi v3, swagger v2 and postman collection An auto typescript/javascript/kotlin code generator from APIs doc. Each endpoint will be created as a function, full type base. Supported - Generating a function for every apis - Generating all types, interfaces and enums which used in apis - React hooks. - SignalR hub. - Generating mock data. For Example: Get method of '/Account' path will be this code in services.ts install $ yarn add swagger-typescript prettier -D && yarn add axios get start Before running, add your config to swagger.config.json swagger.config.json run config.ts more baseConfig Now you can use APIs, So for advanced config read below. swagger.config.json For Example: [ Key ] [ default ] Comment -------------------- ---------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- url Required swagger or postman collection Address. can be online or local (json/yaml) (specific branch) dir Required Address of output language typescript export to \"javascript\", \"typescript\" or \"kotlin\" methodName {method}{path} Supported mixed of \"{method}{path}{operationId}\". for Example: 'service","default_branch":null,"files":null,"tree":[],"storefront":"/r/fardad-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fardad-dev/swagger-typescript/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."}