Skip to main content
Class for CRUDL of Configurations.

Initialization

Methods

Create a new configuration.
Parameters:
string
required
Name of the Configuration table.
string
required
Name of the configuration.
json
required
Schema of config.
Returns: Success response with dictionary of the configuration data.
Read a configuration.
Parameters:
string
required
Name of the Configuration table.
string
required
Name of the configuration to fetch.
Returns: Dictionary of the configuration data.
Update a configuration.
Parameters:
string
required
Name of the Configuration table.
string
required
Name of the configuration.
data : Schema of config. Returns: Dictionary of the configuration data.
Delete a configuration.
Parameters:
string
required
Name of the Configuration table.
string
required
Name of the configuration.
Returns: Successful response.
List a configuration.
Parameters:
string
required
Name of the Configuration table.
int
default:"1"
Number of pages.
int
default:"10"
Number of configs in each page.
string
default:"modified_at"
Sorting condition.
string
default:"desc"
The order to sort by.
Search by keywords.
Returns: List of Dictionary of the configuration data.