Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- link=$(curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"https://raw.githubusercontent.com/go-gitea/gitea/master/templates/swagger/v1_json.tmpl", "options": {"packageName": "giteapy", "packageVersion": "1.0.9"}}' https://generator.swagger.io/api/gen/clients/python | jq -r .link)
- echo "Downloading zip from $link"
- curl -o giteapy.zip "$link"
- unzip giteapy.zip
- find python-client -type f | xargs sed -i 's/{{AppSubUrl}}//g'
Add Comment
Please, Sign In to add comment