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:response.lua

From BoxMatrix
(Redirected from response.lua)


BoxMatrix >> Webinterface >> response.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 REST-API Lua-Scripts Javascript Browser SSI-Files SSI-Directives HTML-Text Event-Text Help-Pages CSS-Files Graphics Research

RESTAPI-Script

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

Details

response.lua is the REST-API Response API. It is included by nearly all API related Lua-Scripts.

It sends the query result response to the requesting API client, which may also be an error response,.

REST-API:

Functions

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

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

# Make sure if the code is a known API error code.
local function is_valid_error_code(code)

# Send the given data to the client.
local function send_data(data)

# Append a simple error to the list of errors.
function response.error_append(err)

# Append a specific error to the list of errors.
function response.error_uimod(results, transaction)

# Send list of errors to the client.
function response.send_error(err)

# Send the given data or error.
function response.send(data) 

Dependencies

Daily updated index of all dependencies of this script. Last update: 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 rest avmluamessages.lua 32 7.39 - 7.62 REST-API Debug Message Printer AVM
Requires rest error.lua 38 7.39 - 8.00 REST-API Error handling AVM
Requires rest rest_api_const.lua 38 7.39 - 8.00 REST-API Const Tables AVM
Required by rest api.lua 38 7.39 - 8.00 REST-API Lua-Land root for scgi_server AVM
Required by rest api_generic.lua 38 7.39 - 8.00 REST-API Generic Endpoints AVM
Required by rest boxname.lua (restapi) 25 7.90 - 8.00 REST-API Misc-Plugin for the FRITZ!Box-Name AVM
Required by rest boxnotify_rest.lua 29 7.39 - 8.00 REST-API module for box notifications AVM
Required by rest calllog_rest.lua 29 7.39 - 8.00 REST-API module for the Phone-Calls and TAM-Calls AVM
Required by rest common.lua (restapi) 25 7.70 - 8.00 REST-API common helper functions AVM
Required by rest configflags.lua 24 7.90 - 8.00 REST-API Plugin for the Config-Environment AVM
Required by rest configuration.lua 25 7.90 - 8.00 REST-API Misc-Plugin for basic box configuration AVM
Required by rest datatype.lua 25 7.90 - 8.00 REST-API Datatype Conversion AVM
Required by rest eventlog.lua 25 7.90 - 8.00 REST-API Plugin for the Event-Log+ AVM
Required by rest faxjournal_rest.lua 29 7.39 - 8.00 REST-API module for the Fax-Journal AVM
Required by rest handsets.lua 25 7.90 - 8.00 TODO AVM
Required by rest info.lua 24 7.90 - 8.00 REST-API Plugin for info about the REST-API AVM
Required by rest internet.lua (restapi) 25 7.70 - 8.00 TODO AVM
Required by rest isp.lua (restapi) 25 7.90 - 8.00 TODO AVM
Required by rest landevice.lua 12 7.39 REST-API wrapper for the landevice ui-module AVM
Required by rest locale.lua 25 7.70 - 8.00 TODO AVM
Required by rest misc.lua 25 7.90 - 8.00 REST-API Plugin for dispatching Misc-Plugins AVM
Required by rest monitor.lua 25 7.90 - 8.00 REST-API Plugin for the monitoring API AVM
Required by rest myfritz.lua (restapi) 25 7.70 - 8.00 TODO AVM
Required by rest obl_fboxname.lua 10 7.39 REST-API Demo Module AVM
Required by rest phonebook.lua (restapi) 25 7.90 - 8.00 REST-API Plugin for the Phonebook AVM
Required by rest phonebook_rest.lua 14 7.39 - 7.81 REST-API module for the Phonebook AVM
Required by rest plugin_common.lua 25 7.90 - 8.00 REST-API Plugin helper functions AVM
Required by rest privacy.lua 25 7.70 - 8.00 TODO AVM
Required by rest progress.lua 25 7.70 - 8.00 TODO AVM
Required by rest rest_config.lua 39 7.39 - 8.00 REST-API Module Loader AVM
Required by rest saveset.lua 25 7.70 - 8.00 TODO AVM
Required by rest setup.lua 25 7.70 - 8.00 REST-API Plugin for dispatching Setup-Plugins AVM
Required by rest smarthome.lua (restapi) 19 7.90 - 8.00 REST-API Plugin for Smarthome AVM
Required by rest smarthome_rest.lua 29 7.39 - 8.00 REST-API module for Smarthome AVM
Required by rest storagenasrights_rest.lua 39 7.39 - 8.00 REST-API module for NAS access permissions AVM
Required by rest timermix.lua 25 7.90 - 8.00 REST-API Plugin for XML timers AVM
Required by rest uimod.lua (restapi) 25 7.70 - 8.00 REST-API UI-Modules API AVM
Required by rest uimod_cache.lua 25 7.70 - 8.00 TODO AVM
Required by rest update.lua (restapi) 25 7.70 - 8.00 TODO AVM
Required by rest validcheck.lua 25 7.70 - 8.00 REST-API common validation helper functions AVM
Required by rest wan_status.lua 25 7.90 - 8.00 TODO AVM
Required by rest webusb_rest.lua 39 7.39 - 8.00 REST-API module for NAS handling AVM
Required by rest wifi.lua (restapi) 25 7.70 - 8.00 TODO AVM
43 dependencies for this script

Model-Matrix

Daily updated index of the presence, path and size of this script for each model. Last update: 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/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
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
FRITZ!Box 4040 7.39 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 4050 7.58 - 7.90 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 4060 7.39 - 7.90 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 5530 Fiber (main) 7.39 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 5590 Fiber (main) 7.39 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 5590 Fiber (prx) 7.70 - 8.00 /usr/rest_api 4.9k - 7.7k
FRITZ!Box 5690 Pro (main) 7.62 /usr/rest_api 4.4k
FRITZ!Box 6490 Cable (atom) 7.39 - 7.51 /usr/rest_api 4.4k
FRITZ!Box 6590 Cable (atom) 7.39 /usr/rest_api 4.4k
FRITZ!Box 6591 Cable (arm) 8.00 /usr/rest_api 7.7k
FRITZ!Box 6591 Cable (atom) 7.39 - 7.90 /usr/rest_api 3.6k - 7.8k
FRITZ!Box 6660 Cable (arm) 7.90 - 8.00 /usr/rest_api 7.7k
FRITZ!Box 6660 Cable (atom) 7.39 - 7.90 /usr/rest_api 3.6k - 7.7k
FRITZ!Box 6670 Cable (arm) 7.90 /usr/rest_api 7.7k
FRITZ!Box 6670 Cable (atom) 7.90 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 6690 Cable (arm) 7.90 /usr/rest_api 7.7k
FRITZ!Box 6690 Cable (atom) 7.39 - 7.90 /usr/rest_api 3.6k - 7.7k
FRITZ!Box 6820 LTE v1 (main) 7.51 - 7.59 /usr/rest_api 4.4k
FRITZ!Box 6820 LTE v2 (main) 7.51 - 7.59 /usr/rest_api 4.4k
FRITZ!Box 6820 LTE v3 (main) 7.51 - 7.57 /usr/rest_api 4.4k
FRITZ!Box 6820 LTE v4 7.59 /usr/rest_api 4.4k
FRITZ!Box 6850 5G 7.39 - 7.90 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 6850 LTE 7.39 - 7.90 /usr/rest_api 3.6k - 7.7k
FRITZ!Box 6890 LTE (main) 7.39 - 7.57 /usr/rest_api 3.6k - 4.4k
FRITZ!Box 6890 LTE v1 (main) 7.39 - 7.57 /usr/rest_api 3.6k - 4.4k
FRITZ!Box 6890 LTE v2 (main) 7.39 - 7.57 /usr/rest_api 3.6k - 4.4k
FRITZ!Box 7490 (main) 7.51 /usr/rest_api 4.4k
FRITZ!Box 7510 7.39 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 7520 7.39 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 7520 v2 (main) 7.39 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 7530 7.39 - 8.00 /usr/rest_api 3.6k - 7.7k
FRITZ!Box 7530 AX 7.39 - 8.00 /usr/rest_api 3.6k - 7.7k
FRITZ!Box 7583 (main) 7.50 - 7.59 /usr/rest_api 4.4k
FRITZ!Box 7583 VDSL (main) 7.59 - 8.00 /usr/rest_api 4.4k - 7.7k
FRITZ!Box 7590 (main) 7.39 - 8.00 /usr/rest_api 3.6k - 7.8k
FRITZ!Box 7590 AX (main) 7.39 - 8.00 /usr/rest_api 3.6k - 7.7k
FRITZ!Box 7690 7.61 - 7.90 /usr/rest_api 4.4k - 7.7k
FRITZ!Repeater 2400 7.39 /usr/rest_api 3.8k
38 models use this script

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

r