Open fa0311 opened 1 year ago
python test
sudo apt install python3-virtualenv
sudo apt install nginx
sudo vi /etc/nginx/nginx.conf
- 60 include /etc/nginx/sites-enabled/*;
+ 60 # include /etc/nginx/sites-enabled/*;
sudo vi /etc/nginx/conf.d/pet_store.conf
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://petstore.swagger.io/v2/;
}
}
sudo systemctl restart nginx
sudo service nginx restart
apt install nodejs npm
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
cd http-echo-server
npm install
nodejs index.js
# flake8.sh
flake8 --exclude petstore_api/*.py
black petstore_api/models/*.py -l 79
black petstore_api/api/*.py -l 79
# autopep8 --in-place --aggressive --aggressive petstore_api/models/*.py
# autopep8 --in-place --aggressive --aggressive petstore_api/api/*.py
flake8 --exclude petstore_api/**/*.py, petstore_api/*.py
mypy petstore_api/api/*.py
mypy petstore_api/models/*.py
python/**/*.mustache, AbstractPythonCodegen.java,tests/*.py, tests/*.py, python/*.yaml,
Codegen*.java
src/test/resources/3_0/python/*.yaml
git clone https://github.com/swagger-api/swagger-petstore
cd swagger-petstore
git checkout v2
vi pom.xml
- 93 <port>8002</port>
+ 93 <port>3000</port>
mvn package jetty:run
install
build and update sample
test
windows all build