How to make the below curl request to IBM Tradeoff analytics using chrome advanced rest client plugin curl -X POST -u "{username}":"{password}" --header "Content-Type: application/json" --data @problem.json "https://gateway.watsonplatform.net/tradeoff-analytics/api/v1/dilemmas? find_preferable_options=true&generate_visualization=false"
1 Answers
0
votes
Using Chrome Advanced Rest Client Plugin
Enter the Request URL above and then select POST method. In Headers form give Content-Type as application/json and in Authorization Username & Password(You will have to click on pencil icon to give username & password). In Raw payload, enter the contents of problem.json file and Click on SEND.
You will get 200 OK with JSON Content!