Add python generator

This commit is contained in:
Guilhem Bonnefille 2020-07-28 23:15:01 +02:00
parent bf447f3dd8
commit a71d45c2ac
3 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
swagger-codegen-cli.jar
# Generated directory
html
python

View File

@ -8,5 +8,10 @@ swagger-codegen-cli.jar:
doc:
mkdir -p html
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.json -l html -o html
python:
mkdir -p python
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.json -l python -o python -c config-python.json
clean:
rm -rf doc
rm -rf doc python

4
config-python.json Normal file
View File

@ -0,0 +1,4 @@
{
"packageName": "pyopenkarotz",
"projectName": "pyopenkarotz"
}