Hi guys,
Don't have much experience with REST API's hoping I can just get a bit of info.
Here is an example command from the API.
I know I will be told to get this done through simpl# however I have never used it so that may be tough.? I was hoping I can write this in SIMPL+.? Just basically looking for a quick rundown, can I use a TCP/IP Client to connect on port 80 or do I need to connect inside the SIMPL+ module?
Also, it has the PUT url, then the header, and then body.? I am not sure how to format this inside simpl+.? Can I simply use a makestring and send the entire thing out at once, or do I need to send the PUT, wait for a response, and then send the rest?? A small breakdown of format would be extremely helpful.
Lastly, does an API typically require commands for every parameter to be sent? Or if I am not adjusting the IP settings can I just leave them out of the code entirely?
Thanks so much in advance.
Update the system-wide settings for the device.
These settings include network settings, name, id and other attributes not related to encode, decode, or media transmission.
Example URI
PUT?http://ip.address:2020/v1/system
Headers
Content-Type: application/json
?
Body
{
"name": "string",
"device_roles": {
"values": [
"strings"
]
},
"ip_scheme": "static",
"static_ip_address": "ip_address",
"static_netmask": "ip_address",
"static_gateway": "ip_address",
"static_dns_addresses": [
"ip_addresses"
],
"xml_active": {
"value": boolean
},
"xml_url": "string",
"xml_poll_interval": {
"value": integer
}
}