Implement getter for application constants

Implements #3944
This commit is contained in:
Simone Mainardi 2020-05-28 16:44:56 +02:00
parent 0dfa2b342f
commit 8b85f0dd9e
6 changed files with 72 additions and 4 deletions

View file

@ -11,8 +11,8 @@ local alert_consts = require "alert_consts"
local rest_utils = require "rest_utils"
--
-- Read all the defined alert type constants
-- Example: curl -u admin:admin http://localhost:3000/lua/rest/v1/get/alert/type/consts.lua
-- Read all the defined alert severity constants
-- Example: curl -u admin:admin http://localhost:3000/lua/rest/v1/get/alert/severity/consts.lua
--
-- NOTE: in case of invalid login, no error is returned but redirected to login
--