How to set up job to query a very simple REST service which has no parameters and just provides an immediate json response? For example, the url give is http://testbox.bmc.com/www/index.php/application/api/check_if_ok When using that url in a browser, it simply returns {"status":"OK"} or {"status":"NOTOK"} |
First, in the REST connection profile, specify the base url: http://testbox.bmc.com/www/index.php/application/api/ Save the connection profile, and then in the WS job define: 1. The account you created 2. select the URL (will be the same as above) 3. Method: GET 4. Path: check_if_ok Leave the rest of the fields empty because this service is very simple, it has no input parameters. Submit and order the job. The following video demonstrates this article:
|