Loopback-swagger-codegen
This package provide a simple way to create client libs form your loopback application
Install
npm install looopback-swagger-codegen
Examples
const instance = //Generate the client via api instance
API
ClientGenerator
-
unzipClient(zipPath,destPath)
- zipPath - path to your zip file
- destPath - destination for the content of the zip file
-
downloadClient (path, response)
- path - absolute path for the zip file
- response - the response from the generateClient method
-
generateClient (type[,opts])
- opts - options for the client for example you can specify the android package name see http://generator.swagger.io/explorer
- type - a client should be one of the following:
"akka-scala" "android" "async-scala" "clojure" "csharp" "CsharpDotNet2" "dart" "dynamic-html" "flash" "go" "html" "java" "javascript" "javascript-closure-angular" "jmeter" "objc" "perl" "php" "python" "qt5cpp" "ruby" "scala" "swagger" "swagger-yaml" "swift" "tizen" "typescript-angular" "typescript-node"