The 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.

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

context: Key-values providing frame of reference of request

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