API: System endpoint, more health graphs (#8730)

* API: System endpoint, more health graphs

* Add new line api_functions

* Get count of relationships

Using eloquent

* Add new lines in Models
This commit is contained in:
Paul Heinrichs
2018-05-19 00:36:06 -04:00
committed by Tony Murray
parent 57a23a7548
commit 2d7423cdaa
7 changed files with 115 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ $app->group(
$app->group(
'/v0',
function () use ($app) {
$app->get('/system', 'authToken', 'server_info')->name('server_info');
$app->get('/bgp', 'authToken', 'list_bgp')->name('list_bgp');
$app->get('/bgp/:id', 'authToken', 'get_bgp')->name('get_bgp');
$app->get('/ospf', 'authToken', 'list_ospf')->name('list_ospf');