Requests-Conduit

You can make requests of the AEP API. Available methods for requests include using curl or get commands.

Request examples (using curl):

# curl 127.0.0.1/api/ni/nis/0 -X PUT --data '{"MAC":"00:08:00:4A:1E:AF","available":true,"bridge":"--","ipv4":{"dns1":"172.16.0.20","dns2":"", "gateway":"172.16.0.1", "ip":"172.16.0.182","mask":"255.255.255.0","mode":"STATIC"}, "name":"eth0","nitype":"ETHER","type":"LAN"}' -H "Content-Type: application/json"

# curl 127.0.0.1/api/loraNetwork -X PUT --data '{"network":{"name":"NEW-NAME"}}' -H "Content-Type: application/json"

# curl 127.0.0.1/api/command/save_restart -X POST --data '' -H "Content-Type: application/json"