forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-swag.sh
executable file
·85 lines (82 loc) · 2.13 KB
/
make-swag.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash -e
# Generate Kazoo SDKs using the Swagger file
## Languages commented out either fail to generate or generate server code
## (we only want to generate client SDKs)
langs=''
# langs="$langs CsharpDotNet2"
langs="$langs akka-scala"
# langs="$langs aspnet5"
# langs="$langs aspnetcore"
langs="$langs async-scala"
langs="$langs bash"
langs="$langs clojure"
# langs="$langs cpprest"
# langs="$langs csharp"
langs="$langs cwiki"
# langs="$langs dart"
langs="$langs dynamic-html"
langs="$langs elixir"
# langs="$langs erlang-server"
langs="$langs finch"
langs="$langs flash"
langs="$langs go"
# langs="$langs go-server"
langs="$langs groovy"
langs="$langs haskell"
langs="$langs html"
langs="$langs html2"
langs="$langs inflector"
langs="$langs java"
langs="$langs java-play-framework"
# langs="$langs javascript"
# langs="$langs javascript-closure-angular"
langs="$langs jaxrs"
langs="$langs jaxrs-cxf"
langs="$langs jaxrs-cxf-cdi"
langs="$langs jaxrs-cxf-client"
langs="$langs jaxrs-resteasy"
langs="$langs jaxrs-resteasy-eap"
langs="$langs jaxrs-spec"
langs="$langs jmeter"
langs="$langs lumen"
langs="$langs msf4j"
# langs="$langs nancyfx"
# langs="$langs nodejs-server"
# langs="$langs objc"
langs="$langs perl"
langs="$langs php"
langs="$langs python"
langs="$langs python-flask"
# langs="$langs qt5cpp"
langs="$langs rails5"
langs="$langs ruby"
langs="$langs scala"
langs="$langs scalatra"
langs="$langs silex-PHP"
langs="$langs sinatra"
langs="$langs slim"
langs="$langs spring"
# langs="$langs swagger"
# langs="$langs swagger-yaml"
# langs="$langs swift"
langs="$langs swift3"
langs="$langs tizen"
langs="$langs typescript-angular"
langs="$langs typescript-angular2"
langs="$langs typescript-fetch"
langs="$langs typescript-jquery"
langs="$langs typescript-node"
langs="$langs undertow"
langs="$langs ze-ph"
for lang in $langs; do
echo
echo
echo Generating SDK in $lang
echo
docker run --rm \
-v ${PWD}/out:/out \
swaggerapi/swagger-codegen-cli generate \
-i https://raw.githubusercontent.com/2600hz/kazoo/master/applications/crossbar/priv/api/swagger.json \
-l $lang \
-o /out/$lang
done