80 Commits

Author SHA1 Message Date
laf
b4b160ead4 Updates from scrutinizer recommendations 2014-10-29 21:30:35 +00:00
laf
3e4a494047 Added bgp peers route to display all bgp peers 2014-10-26 15:48:51 +00:00
208ac0b104 Merge remote-tracking branch 'laf/issue-laf-47' 2014-10-25 08:49:28 +10:00
69c3d926ff Merge pull request #315 from laf/issue-laf-58
Added the ability to call the api for a list of endpoints
2014-10-22 21:46:34 +10:00
15392ecf40 Merge pull request #313 from laf/issue-laf-61
Added a response code when things are ok - oops
2014-10-22 21:37:39 +10:00
24ee2541ee Defining output array as per scrutinizer 2014-10-09 16:47:11 +00:00
0be049fde9 Added the ability to call the api for a list of endpoints 2014-10-09 16:20:04 +00:00
b6db82d8af Added a response code when things are ok - oops 2014-10-09 16:14:06 +00:00
cd8b2299df Updated authToken response code to be 401 2014-10-07 23:53:26 +00:00
5887009b63 Merge pull request #300 from laf/issue-laf-44
Added a route to the API that will get vlans for a given device
2014-10-07 19:56:01 +10:00
laf
2be63b2041 Added an option to rediscover a device from the web page 2014-10-02 20:17:45 +01:00
laf
c55c1a71ba missed out the response code and header 2014-10-01 21:12:21 +01:00
laf
a87dd794e4 Updated vlans returned, was a double array by accident 2014-10-01 21:00:07 +01:00
laf
d2f727cfcb Added a total vlan response in api 2014-10-01 20:53:15 +01:00
laf
b8a2b7c291 Added /vlans/:hostname route to the API 2014-10-01 20:49:34 +01:00
laf
9ba4b464ea Added urldecode/encode support 2014-09-30 21:30:22 +01:00
11f475b405 Syntaxy fix 2014-09-28 09:56:33 +10:00
508e0b816d Fix Scrutinizer errors 2014-09-28 09:30:36 +10:00
8a3117f0dc Rewrite ugly if-else one-liners as ternary operator 2014-09-28 09:30:18 +10:00
d6245fd6ba Correctly set error code for missing SNMP version 2014-09-27 18:34:23 +10:00
82613f17ee keep scrutinizer from complaining about snmpver not being set for all execution paths 2014-09-27 18:27:45 +10:00
e48c1a6730 Use more accurate HTTP status code for device add 2014-09-27 16:34:43 +10:00
9d4a9dfa30 Re-implement get_device using existing primitives 2014-09-27 16:34:36 +10:00
48d3a43669 Tidy device deletion 2014-09-27 16:32:55 +10:00
76f5ab87a9 Add function to get information about a single device 2014-09-27 15:25:43 +10:00
a58c857ed2 Provide more useful diagnostics when adding a device via the API 2014-09-27 15:23:32 +10:00
0a351ecf58 Supply more specific error code when API token is missing or invalid 2014-09-27 14:48:08 +10:00
laf
8790bfee0a Added api call to delete device 2014-09-17 21:03:02 +01:00
laf
e81ce9ff60 Removed one of the router variables as it was not needed 2014-09-17 18:45:44 +01:00
laf
a0b52743d0 Updated api routes to new format + moved includes file to correct location 2014-09-16 22:19:29 +01:00