congress.api.action_model module

class congress.api.action_model.ActionsModel(name, bus=None)

Bases: congress.api.base.APIModel

Model for handling API requests about Actions.

get_items(params, context=None)

Retrieve items from this model.

Param

params: A dict-like object containing parameters from the request query string and body.

Param

context: Key-values providing frame of reference of request

Returns

A dict containing at least a ‘actions’ key whose value is a list of items in this model.