The congress.api.schema_model Module

class congress.api.schema_model.SchemaModel(name, bus=None)

Bases: congress.api.base.APIModel

Model for handling API requests about Schemas.

get_item(id_, params, context=None)

Retrieve item with id id_ from model.


id_: The ID of the item to retrieve params: A dict-like object containing parameters

from the request query string and body.

context: Key-values providing frame of reference of request

The matching item or None if item with id_ does not exist.