From 09ea945c3908fd42e90eb64c194d9af11d174206 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Tue, 12 Apr 2016 18:01:32 +0200 Subject: Actual initial import Fetched from tgmanage. --- web/api/API.rst | 131 +++++++++++++++++++++++++++++++++++++++ web/api/public/dhcp | 20 ++++++ web/api/public/dhcp-summary | 16 +++++ web/api/public/location | 44 +++++++++++++ web/api/public/ping | 37 +++++++++++ web/api/public/switch-state | 97 +++++++++++++++++++++++++++++ web/api/public/switches | 36 +++++++++++ web/api/read/comments | 15 +++++ web/api/read/snmp | 30 +++++++++ web/api/read/switches-management | 30 +++++++++ web/api/write/comment-add | 24 +++++++ web/api/write/comment-change | 25 ++++++++ web/api/write/switch-add | 92 +++++++++++++++++++++++++++ web/api/write/switch-update | 123 ++++++++++++++++++++++++++++++++++++ 14 files changed, 720 insertions(+) create mode 100644 web/api/API.rst create mode 100755 web/api/public/dhcp create mode 100755 web/api/public/dhcp-summary create mode 100755 web/api/public/location create mode 100755 web/api/public/ping create mode 100755 web/api/public/switch-state create mode 100755 web/api/public/switches create mode 100755 web/api/read/comments create mode 100755 web/api/read/snmp create mode 100755 web/api/read/switches-management create mode 100755 web/api/write/comment-add create mode 100755 web/api/write/comment-change create mode 100755 web/api/write/switch-add create mode 100755 web/api/write/switch-update (limited to 'web/api') diff --git a/web/api/API.rst b/web/api/API.rst new file mode 100644 index 0000000..7d5c88b --- /dev/null +++ b/web/api/API.rst @@ -0,0 +1,131 @@ +API-dok +======= + +Work in progress. + +There are two relevant paths: /api/public and /api/private. One requires +user-login in, the other does not. + +General: All end-points that output time-based data accept the "now=