open-api python-flask 최단 빨리만들기
flask로 api 최단 빨리만들어 실행하기
- 일단 swagger editor를 오픈 https://editor.swagger.io/
- Generate-Server 의 python-flask를 선택해서 다운로드
- micro requirement.txt
connexion==2.6.0
으로 수정. 수정하지않으면 로딩이 안된다.
- pip3 install -r requirement.txt
- pip3 install -e ./
- python3 -m swagger_server
끝
모듈 로딩 확인
라이브러리로 문제가 있나요? 얼른 확인해 보세요.
python -c "import swagger_server"
python -c "import connexion"
끝