This commit is contained in:
MaxToby
2021-01-08 23:35:08 +08:00
parent 9d54da3c67
commit ce24620329
101 changed files with 10965 additions and 27 deletions

12
example/generate-client.sh Executable file
View 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"