example
This commit is contained in:
12
example/generate-client.sh
Executable file
12
example/generate-client.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
for l in go javascript php; do
|
||||
docker run --rm -v "$(pwd):/go-work" swaggerapi/swagger-codegen-cli generate \
|
||||
-i "/go-work/rest.swagger.json" \
|
||||
-l "$l" \
|
||||
-o "/go-work/clients/$l"
|
||||
done
|
||||
|
||||
docker run --rm -v "$(pwd):/go-work" swaggerapi/swagger-codegen-cli langs
|
||||
|
||||
echo "See https://github.com/swagger-api/swagger-codegen for more info"
|
Reference in New Issue
Block a user