Enabling general search for ports, devices, and more (#11571)

* Search engine for device, through API

* reviewed port search through API

* fixed die

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api.php

* Update api.php

* Update Ports.md

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
hachpai
2020-05-25 00:16:07 +02:00
committed by GitHub
parent a44cdc2f45
commit 4bb064c7ad
3 changed files with 69 additions and 4 deletions

View File

@@ -113,6 +113,7 @@ Route::group(['prefix' => 'v0', 'namespace' => '\App\Api\Controllers'], function
Route::group(['prefix' => 'ports'], function () {
Route::get('{portid}', 'LegacyApiController@get_port_info')->name('get_port_info');
Route::get('{portid}/ip', 'LegacyApiController@get_port_ip_addresses')->name('get_port_ip_info');
Route::get('search/{search}', 'LegacyApiController@search_ports')->name('search_ports');
Route::get(null, 'LegacyApiController@get_all_ports')->name('get_all_ports');
});