Package enomalism2 :: Module REST
[hide private]

Module REST

Provides most of the REST functionality in Enomalism.


Requires:
Classes [hide private]
  redirect
Abstract class containing methods to redirect REST requests.
  rest
The main Enomalism REST controller.
Functions [hide private]
Function
register_extension(path, anonymous=False, **kw)
Register a REST URL with Enomalism.
Variables [hide private]
String UUID = 'f312a7e1-8f13-4e67-ac72-1abcda2dc8c9'
The uuid of the module.
enomalism2.REST.rest REST = rest()
An instance of the REST controller.
Dictionary errmsgs
REST error messages.
Function Details [hide private]

register_extension(path, anonymous=False, **kw)

 

Register a REST URL with Enomalism.

Example usage:

>>> enomalism2.REST.register_extension('myextension')
Parameters:
  • path (String) - The URL path of the REST function.
  • anonymous (Boolean) - Whether we require an identity/session to use this call
Returns: Function
The newly decorated function.
Raises:
  • None - No exceptions are raised by this function.

Status: Stable

See Also: enomalism2.identity.get