Ruby Examples
Download script
Usage
./httprestapi.rb <URI> <user> <password> <http request>
With <URI> = http://ip:port
Example: ./httprestapi.rb 'http://127.0.0.1:12358' 'root' 'password' <http request>
With <http request> = <GET|PUT|POST|DELETE> <element path> [json | -i jsonfile | -o jsonfile]
-i jsonfile = input json file used for PUT or POST http request
-o jsonfile = output json file used for GET http requestGET
PUT
POST
DELETE
Using JSON files
Modify an element
Create a new element
Last updated
Was this helpful?
