Used to provide users with IP addresses of Iperf servers. See Iperf Server and Mobile App
Do not change swagger.yaml without swagger hub Swagger HUB with API
Just start server
cd server
python3 setup.py install --user
pip3 install -r requirements.txt
python3 setup.py install --user
export BALANCER_PORT=8080 # port for server to run
python3 -m swagger_server
or with docker
cd server
docker run -p $PORT_OUT:$BALANCER_PORT docker_image_name
Make use of SERVERLOGPATH environment variable. Server list will be stored there. Deleted and used
export SERVERLOGPATH=../logs/log.txt
echo $SERVERLOGPATH
- Update Swagger-api Swagger HUB with API
- Sync Swagger Hub with GitHub. Action will regenerate code and commit it.
- Pull changes
- Implement new endpoints inside *_controllers.py, using Connexion library. Generated templates stored in *_controllers_new.py.
- Push changes to github.
NOTE. Project based on Python-flask. Do not use it on production. Install Swagger and fix update_prj_from_yaml.sh to regenerate swagger locally. Do not change API locally!
On every Push to github action regenerate project. Code inside *_controller.py stays without changes.
Code based on Swagger CodeGenerator
Created during Skoltech Summer Camp. Inspired byEugene Mavrin. Developed by Aleksandr Vinogradov and Vladimir Prokhorov.