The congress.api.table_model
Module¶
-
class
congress.api.table_model.
TableModel
(name, bus=None)¶ Bases:
congress.api.base.APIModel
Model for handling API requests about Tables.
-
get_items
(params, context=None)¶ Get items in model.
- Args:
- params: A dict-like object containing parameters
- from the request query string and body.
context: Key-values providing frame of reference of request
- Returns: A dict containing at least a ‘results’ key whose value is
- a list of items in the model. Additional keys set in the dict will also be rendered for the user.
-