Guest User

Untitled

a guest
May 9th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. 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)
  2. echo "Downloading zip from $link"
  3. curl -o giteapy.zip "$link"
  4. unzip giteapy.zip
  5. find python-client -type f | xargs sed -i 's/{{AppSubUrl}}//g'
Add Comment
Please, Sign In to add comment