1
0
mirror of https://github.com/playit-cloud/playit-api-java synced 2024-11-13 13:39:30 +00:00
playit-api-java/generate.sh
2024-02-08 12:51:30 -08:00

22 lines
827 B
Bash

# delete old code
rm -rf ./src
java -jar openapi-generator-cli.jar generate \
-i res/openapi.json \
-g java \
--http-user-agent playit-api-java \
--api-name-suffix PlayitAPI \
--additional-properties apiPackage=gg.playit.api \
--additional-properties className=PlayitAPI \
--additional-properties modelPackage=gg.playit.api.models \
--additional-properties artifactId=playit-api-java \
--additional-properties artifactUrl=https://github.com/playit-cloud/playit-api-java \
--additional-properties developerName="Patrick Lorio" \
--additional-properties developerOrganization="Developed Methods LLC" \
--additional-properties developerOrganizationUrl="https://methods.dev" \
--additional-properties hideGenerationTimestamp=true \
-o ./
git apply patches/gitignore.patch
git apply patches/auth.patch