manual:api:reference:httptest:create

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
manual:api:reference:httptest:create [2014/12/19 10:01]
sasha [Parameters] hostid parameter is required for httptest object. Removed incorrect tooltip.
manual:api:reference:httptest:create [2019/01/28 14:50]
sasha <code js> => <code java>
Line 29: Line 29:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 40: Line 40:
                 "​name":​ "​Homepage",​                 "​name":​ "​Homepage",​
                 "​url":​ "​http://​mycompany.com",​                 "​url":​ "​http://​mycompany.com",​
-                "​status_codes":​ 200,+                "​status_codes": ​"200",
                 "​no":​ 1                 "​no":​ 1
             },             },
Line 46: Line 46:
                 "​name":​ "​Homepage / About",​                 "​name":​ "​Homepage / About",​
                 "​url":​ "​http://​mycompany.com/​about",​                 "​url":​ "​http://​mycompany.com/​about",​
-                "​status_codes":​ 200,+                "​status_codes": ​"200",
                 "​no":​ 2                 "​no":​ 2
             }             }
Line 57: Line 57:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 75: Line 75:
 ==== Source ==== ==== Source ====
  
-CHttpTest::​create() in //​frontends/​php/​api/​classes/​CHttpTest.php//​.+CHttpTest::​create() in //​frontends/​php/​include/classes/​api/​services/​CHttpTest.php//​.