Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

URL

http://<<ip address>>/rest/network/ipaddress

Method

GET

Description

Receives information on the current network setup.

Response

{
  "ipaddress": [«list of ip addresses»]
}

Status

IMPLEMENTED

URL

http://<<ip address>>/rest/network

Method

GET

Description

Receives information on the current network setup.

Response

{
  "type": "wifi|ethernet",
  "connection": "static|dhcp",
  "static": {
    "ipaddress": «ipaddress»,
    "netmask": «netmask»,
    "gateway": «gateway»
  },
  "wifi": {
    "ssid": «ssid»,
    "key": «pre shared key»
  }
}

Status

IMPLEMENTED

URL

http://<<ip address>>/rest/network

Method

PUT

Description

Sets network settings, will reboot afterwards.

Request

{
  "type": "wifi|ethernet",
  "connection": "static|dhcp",
  "static": {
    "ipaddress": «ipaddress»,
    "netmask": «netmask»,
    "gateway": «gateway»
  },
  "wifi": {
    "ssid": «ssid»,
    "key": «pre shared key»
  }
}

Response

HTTP204 when successful, followed by a reboot

Possible Errors

HTTP400 when request was invalid

{
  "message": «human readable error»
}

Status

PARTLY IMPLEMENTED

TODO: reboot

  • No labels