mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Started fixing rest Documentation and postman collection creation (#8987)
This commit is contained in:
parent
4c611cf661
commit
fe18eff11d
23 changed files with 147 additions and 44 deletions
|
|
@ -1,5 +1,5 @@
|
|||
--
|
||||
-- (C) 2013-24 - ntop.org
|
||||
-- (C) 2013-25 - ntop.org
|
||||
--
|
||||
|
||||
dirs = ntop.getDirs()
|
||||
|
|
@ -10,6 +10,13 @@ local rest_utils = require "rest_utils"
|
|||
local json = require("dkjson")
|
||||
require "lua_utils"
|
||||
|
||||
--
|
||||
-- Get AS Name from IP
|
||||
-- Example: curl -u admin:admin -H "Content-Type: application/json" http://localhost:3000/lua/rest/v2/get/asn/get_as_data.lua
|
||||
--
|
||||
-- NOTE: in case of invalid login, no error is returned but redirected to login
|
||||
--
|
||||
|
||||
-- Get from redis the throughput type bps or pps
|
||||
local ts_enabled = areASTimeseriesEnabled(interface.getId())
|
||||
local throughput_type = getThroughputType()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue