If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:boxnotify rest.lua

From BoxMatrix


BoxMatrix >> Webinterface >> boxnotify_rest.lua @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

UI-Structure UI-Modules HTML-Files XML-Files Lua-Scripts Javascript Browser SSI-Files SSI-Directives HTML-Text Event-Text Help-Pages CSS-Files Graphics Research

Lua-Script

Goto:   Functions  -  Dependencies   -   Model-Matrix   -   SMW-Browser

Details

This has been found in Labor, but did not make it to Release. It may be a test case or a future feature.

boxnotify_rest.lua is the REST-API Module for box notifications.
It is loaded by rest_config.lua and provides the boxnotifications endpoint, which is accessible by:

GET    /api/v0/boxnotifications            # get the list of notifications
DELETE /api/v0/boxnotifications/<string>   # delete a notification

REST-API:

Functions

The function names of scripts often help to understand function blocks (and show gaps in the docs). fw 7530-7.39-96136 functions:

$ grep -e '^function' -e '^local function' /usr/rest_api/boxnotify_rest.lua

# Get boxnotifications ressources.
function boxnotify_rest.getRestRessources(rootPath)

# Helper function to check if the boxnotify lua lib is loaded.
local function assert_boxnotify()

# Handler function to Send a list of notifications to the client.
# GET /api/v0/boxnotifications
function boxnotify_rest.get_notifications()

# Handler function to clear a notification.
# DELETE /api/v0/boxnotifications/<string>
function boxnotify_rest.clear_notification(params)

Not listed in the Dependencies: This loads the libboxnotifylua.so library.

Dependencies

Daily updated index of all dependencies of this script. Last update: 2024-03-28 08:24 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
If an Object includes itself then this is a file with the same name but another Path and the dependencies are merged.

Relation Typ Object Mod Firmware Info Origin
Requires lua response.lua 17 7.39 - 7.90 REST-API Response API AVM
Requires lua rest_api_const.lua 17 7.39 - 7.90 REST-API Const Tables AVM
2 dependencies for this script

Model-Matrix

Daily updated index of the presence, path and size of this script for each model. Last update: 2024-03-16 07:08 GMT.
Showing all models using this script. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size/Bytes
0 models use this script

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

b