-
Notifications
You must be signed in to change notification settings - Fork 0
/
optic.yml
27 lines (23 loc) · 960 Bytes
/
optic.yml
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
name: "NetFoundry API"
# api run --transparent-proxy ENV
tasks:
sandbox:
targetUrl: https://gateway.sandbox.netfoundry.io/
inboundUrl: http://localhost:4322
staging:
targetUrl: https://gateway.staging.netfoundry.io/
inboundUrl: http://localhost:4322
production:
targetUrl: https://gateway.production.netfoundry.io/
inboundUrl: http://localhost:4322
scripts:
render:
command: "widdershins $OPENAPI_JSON -o /tmp/api.md && shins --inline -o docs/index.html /tmp/api.md"
dependsOn:
- widdershins
- shins
install: npm install --global widdershins shins
multiclient:
command: "(for gen_lang in bash c csharp clojure dart erlang-client go groovy java javascript kotlin perl php powershell python r ruby rust swift4 typescript-node; do openapi-generator generate -i $OPENAPI_YAML -g $gen_lang -o clients/$gen_lang; done)"
dependsOn: openapi-generator
install: "brew install openapi-generator"