diff --git a/html/api_v0.php b/html/api_v0.php index 879e14ded..dc05c16ff 100644 --- a/html/api_v0.php +++ b/html/api_v0.php @@ -34,9 +34,7 @@ $app->group('/api', function() use ($app) { $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->group('/vlans', function() use ($app) { - $app->get('/:hostname', 'authToken', 'get_vlans');//api/v0/vlans/$hostname + $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 f374a99ff..b72ab81b4 100644 --- a/html/pages/api-docs.inc.php +++ b/html/pages/api-docs.inc.php @@ -237,7 +237,7 @@ if ($_SESSION['userlevel'] == '10')
curl -X DELETE -H "Content-Type: application/json" -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \
"https://librenms.example.com/api/v0/vlans/localhost"curl -X DELETE -H "Content-Type: application/json" -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \
"https://librenms.example.com/api/v0/devices/localhost/vlans"