From 347288ac234cdec2faa7490e628f106dc1654e27 Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 4 Oct 2014 02:05:32 +0100 Subject: [PATCH] Moved vlans route + updated docs --- html/api_v0.php | 2 +- html/pages/api-docs.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/api_v0.php b/html/api_v0.php index dc05c16ff..44bcc59fe 100644 --- a/html/api_v0.php +++ b/html/api_v0.php @@ -31,10 +31,10 @@ $app->group('/api', function() use ($app) { $app->group('/v0', function() use ($app) { $app->group('/devices', function() use ($app) { $app->get('/:hostname', 'authToken', 'get_device');//api/v0/devices/$hostname + $app->get('/:hostname/vlans', 'authToken', 'get_vlans');//api/v0/devices/$hostname/vlans $app->get('/:hostname/:type', 'authToken', 'get_graph_generic_by_hostname');//api/v0/devices/$hostname/$type $app->get('/:hostname/ports/:ifname', 'authToken', 'get_port_stats_by_port_hostname');//api/v0/devices/$hostname/ports/$ifName $app->get('/:hostname/ports/:ifname/:type', 'authToken', 'get_graph_by_port_hostname');//api/v0/devices/$hostname/ports/$ifName/$type - $app->get('/:hostname/vlans', 'authToken', 'get_vlans');//api/v0/devices/$hostname/vlans }); $app->get('/devices', 'authToken', 'list_devices');//api/v0/devices $app->post('/devices', 'authToken', 'add_device');//api/v0/devices (json data needs to be passed) diff --git a/html/pages/api-docs.inc.php b/html/pages/api-docs.inc.php index b72ab81b4..ad4d7dd55 100644 --- a/html/pages/api-docs.inc.php +++ b/html/pages/api-docs.inc.php @@ -248,7 +248,7 @@ if ($_SESSION['userlevel'] == '10') - curl -X DELETE -H "Content-Type: application/json" -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \
"https://librenms.example.com/api/v0/devices/localhost/vlans"
+ curl -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \
"https://librenms.example.com/api/v0/devices/localhost/vlans"