This change adds JSON APIs to the HTTP server similar to xml/rate but provides a lot more information in different/various API calls.
This request adds the following URLs:
cgi-bin/api/v1 - returns JSON with information about the APIs
cgi-bin/api/v1/cpus - Returns JSON with information about the CPUs
cgi-bin/api/v1/devices - Returns JSON with information about the configured devices
cgi-bin/api/v1/rates - Returns JSON with MIPS/IO
cgi-bin/api/v1/maxrates - Returns JSON with maxrates information
cgi-bin/api/v1/version - Returns JSON with version information
cgi-bin/api/v1/storage - Returns JSON with storage at an address ( a parameter, default 0) of fullword (a parameter, default 32) length
cgi-bin/api/v1/syslog - Returns JSON of the syslog, each line in an array. Can take two parameters: command - hercules commands, and msgcount - the number of lines to return.
This change adds JSON APIs to the HTTP server similar to xml/rate but provides a lot more information in different/various API calls.
This request adds the following URLs:
For example (from zzsacard.bin):
http://localhost:8888/cgi-bin/api/v1/devices
http://localhost:8888/cgi-bin/api/v1/devices
http://localhost:8888/cgi-bin/api/v1/syslog?msgcount=15
Also included is the addition of the javascript mimetype.