爱康云医接口文档

爱康云医API文档


营养餐食保存接口

<p><strong>迭代版本:</strong>2.8.30(新增)</p> <p><strong>简要描述:</strong></p> <ul> <li>营养日志保存接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><a href="http://aky.mynatapp.cc/chronic/nutritionRecord/save">http://aky.mynatapp.cc/chronic/nutritionRecord/save</a></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST/GET</li> <li>Content-Type:application/json</li> </ul> <p><strong>参数:</strong> 菜谱 { &quot;totalEnergy&quot;:1000, &quot;name&quot;:&quot;宫爆鸡丁&quot;, &quot;weight&quot;:2, &quot;energy&quot;:150, &quot;type&quot;:1, //0,1,2 早中晚 &quot;url&quot;:&quot;<a href="http://www.baidu.com/imag/amg.png">http://www.baidu.com/imag/amg.png</a>&quot;, &quot;unit&quot;:&quot;克&quot;, &quot;dietType&quot;:0 //0为识别,1.文字 } 文本 { &quot;totalEnergy&quot;:1000, &quot;content&quot;:&quot;早上喝了牛奶&quot;, &quot;energy&quot;:0, &quot;type&quot;:1, //0,1,2 早中晚 &quot;dietType&quot;:1 //0为识别,1.文字 } <strong>返回示例</strong></p> <pre><code>{ "retcode": "0000", "errMsg": "操作成功", "body": { "standardEnergy": 400, //标准摄入量 "totalEnergy": 1000, //总热量 "id": 1, "actualEnergy": 150 //实际摄入量 } } </code></pre> <p><strong>返回参数说明</strong> </p> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML