Module: TableController

Table controller (methods for getting tables, lookups and CRUD operations)

Source:

Methods

(method HttpPost) AddRow() → {ActionResult}

Add a row to a table

Source:
Returns:
  • Result of the operation
Type
ActionResult

(method HttpPost) Clone() → {ActionResult}

Clones a row of a table

Source:
Returns:
  • Result of the operation
Type
ActionResult

(method HttpDelete) DeleteRow(table, key) → {ActionResult}

Delete a row from a table

Parameters:
Name Type Description
table string

Table

key int

Key

Source:
Returns:
  • Result of the operation
Type
ActionResult

(method HttpPut) DeleteRows(table, pars) → {ActionResult}

Delete rows from a table

Parameters:
Name Type Description
table string

Table

pars Dictionary.<string, object>

Parameters, must contain keys

Source:
Returns:
  • Result of the operation
Type
ActionResult

(method HttpGet) GetLookup(pars) → {ActionResult}

Get a lookup for a foreign key

Parameters:
Name Type Description
pars Dictionary.<string, string>

Function

Source:
Returns:
  • Lookup
Type
ActionResult

(method HttpGet) GetParamLookup(pars) → {ActionResult}

Get a lookup for a parameter

Parameters:
Name Type Description
pars Dictionary.<string, string>

Function

Source:
Returns:
  • Lookup
Type
ActionResult

(method HttpGet) GetRows() → {ActionResult}

Get table

Source:
Returns:
  • Result of the operation
Type
ActionResult

(method HttpGet anonymous) GetTable(pars) → {ActionResult}

Get a table

Parameters:
Name Type Description
pars Dictionary.<string, string>

Function, frugal, json

Source:
Returns:
  • Table
Type
ActionResult

(method HttpPut) UpdateRow() → {ActionResult}

Update a row in a table

Source:
Returns:
  • Result of the operation
Type
ActionResult