如何使用chrome高级rest客户端插件curl -X POST -u "":"" --header "Content-Type: application/json" --data @ problem.json“https://gateway.watsonplatform.net/tradeoff-analytics/api/v1/dilemmas?find_preferable_options = true&generate_visualization = false”向IBM Tradeoff分析发出以下curl请求
1 回答
Using Chrome Advanced Rest Client Plugin
输入上面的请求URL,然后选择POST方法 . 在Headers表单中,将Content-Type指定为application / json,并在Authorization Username&Password中(您必须单击铅笔图标以提供用户名和密码) . 在原始有效负载中,输入problem.json文件的内容并单击SEND .
使用JSON内容您将获得200 OK!