SettingsController
Summary
Defines an entity controller to handle requests relative to settings.
Constructor
SettingsController
Syntax
SettingsController
()
Summary
Item Index
Methods
getEntitiesAction
Syntax
getEntitiesAction
(
async
-
request
-
response
-
next
Summary
Gets settings.
Parameters:
Example:
// Response example
{
"entities" : [ ... ],
"pagination" : {
"limit": ..., // The limit number of settings by page
"page": ..., // The actual page
"pages": ..., // The total number of pages
"size": ... // The total number of settings
}
getEntityAction
Syntax
getEntityAction
(
async
-
request
-
response
-
next
Summary
Gets a specific setting.
If setting is not found it is sent with value null.
Parameters:
Example:
// Response example
{
"entity" : { ... }
}
getProvider
Syntax
getProvider
()
SettingsProvider
Summary
Gets an instance of the provider associated to the controller.
Returns:
SettingsProvider:
The provider