update documentation of api.api

This commit is contained in:
rolux 2014-12-18 20:37:47 +00:00
parent 27c701b97a
commit edf876c119

View file

@ -55,25 +55,19 @@ class ApiActions(dict):
def api(request, data): def api(request, data):
''' '''
returns list of all known api actions Returns a list of all api actions
param data { takes {
docs: bool code: boolean, // if true, return source code (optional)
docs: boolean // if true, return doc strings (optional)
} }
if docs is true, action properties contain docstrings returns {
return {
status: {'code': int, 'text': string},
data: {
actions: { actions: {
'api': { name: {
cache: true, cache: boolean, // if false, don't cache results
doc: 'recursion' code: string, // source code
doc: string // doc strings
}, },
'hello': { ... // more actions
cache: true,
..
}
...
}
} }
} }
''' '''