REST Python Module

CherryPy module containing classes for rest interface.

class pacifica.notifications.rest.EventMatch[source]

CherryPy EventMatch endpoint.

classmethod DELETE(event_uuid)[source]

Delete the event by uuid.

classmethod GET(event_uuid=None)[source]

Get the event ID and return it.

classmethod POST()[source]

Create an Event Match obj in the database.

classmethod PUT(event_uuid)[source]

Update an Event Match obj in the database.

__weakref__

list of weak references to the object (if defined)

static _http_get(event_uuid)[source]

Internal get event by UUID and return peewee obj.

class pacifica.notifications.rest.ReceiveEvent[source]

CherryPy Receive Event object.

classmethod POST()[source]

Receive the event and dispatch it to backend.

__weakref__

list of weak references to the object (if defined)

class pacifica.notifications.rest.Root[source]

CherryPy Root Object.

__weakref__

list of weak references to the object (if defined)

pacifica.notifications.rest.encode_text(thing_obj)[source]

Encode the text to bytes.

pacifica.notifications.rest.error_page_default(**kwargs)[source]

The default error page should always enforce json.

pacifica.notifications.rest.get_remote_user()[source]

Get the remote user from cherrypy request headers.