Server information and capability registration for the API.
Return server information for use in the API.
This is used for the root resource and for the deprecated server info resource.
Return the capabilities made available in the API.
Return the capabilities gated behind enabled features.
- register_webapi_capabilities(capabilities_id, caps)¶
Register a set of web API capabilities.
These capabilities will appear in the dictionary of available capabilities with the ID as their key.
A capabilities_id attribute passed in, and can only be registerd once. A KeyError will be thrown if attempting to register a second time.
capabilities_id (unicode) – A unique ID representing this collection of capabilities. This can only be used once until unregistered.
caps (dict) – The dictionary of capabilities to register. Each key msut be a string, and each value should be a boolean or a dictionary of string keys to booleans.
KeyError – The capabilities ID has already been used.