cd api
export FLASK_APP=api.py FLASK_ENV=development
flask run
To generate API it's necessary to perform following steps:
- Install the generator
> npm install @openapitools/openapi-generator-cli -g
- Once you need to re-generate (the server) do the following operations:
> npx openapi-generator generate -i openapi.yaml -g python-flask
- By the same way a client proxy could be also generated
> npx openapi-generator generate -i openapi.yaml -g typescript-axios
GET: /user -> return user info
GET: /users/{username} -> return for the specidic user
POST: /mark_pull -> by owner
POST: /assign_pull -> by user/dev
POST: /change_user_status
GET: /pulls -> return all existing pulls
GET: /pulls/{pullId} -> return by specific pull
GET: /user_pulls -> owner's pulls