Swagger generation script

This commit is contained in:
Thomas Schwery 2017-02-06 17:34:01 +01:00
parent 830ff2673d
commit 3240657289

12
swagger_generation.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
if [ ! -f esi_swagger.json ]; then
curl "https://esi.tech.ccp.is/latest/swagger.json?datasource=tranquility" > esi_swagger.json
fi
if [ ! -f swagger_linux_amd64 ]; then
wget https://github.com/go-swagger/go-swagger/releases/download/0.8.0/swagger_linux_amd64
chmod +x swagger_linux_amd64
fi
./swagger_linux_amd64 generate client -f esi_swagger.json -A app