Inol restful API
inol-rest的Python项目详细描述
要求。
python 2.7和3.4+
安装和使用
pip install inol_rest
##建筑
cd inol_rest/src/inol_rest/static
gulp
##在本地运行
cd inol_rest/ . ./setup_shell.sh cd src ./manage.py runserver
这是一个负责执行所有inol计算的微服务
卷曲
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'X-Fields: inol' -d '{ \ "max": 100, \ "reps": 1, \ "weight": 100 \ }''http://127.0.0.1:5000/api/inol/'