mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user