More API documentation

This commit is contained in:
Ruud committed 2012-02-21 20:42:41 +01:00
1 parent a5cc1859d1
commit b164674ff7
7 files changed
+88 -31

No files matched your search

+12 -2
View File
@@ -16,8 +16,18 @@ class Release(Plugin):
def __init__(self):
addEvent('release.add', self.add)
addApiView('release.download', self.download)
addApiView('release.delete', self.delete)
addApiView('release.download', self.download, docs = {
'desc': 'Send a release manually to the downloaders',
'params': {
'id': {'type': 'id', 'desc': 'ID of the release object in release-table'}
}
})
addApiView('release.delete', self.delete, docs = {
'desc': 'Check for available update',
'params': {
'id': {'type': 'id', 'desc': 'ID of the release object in release-table'}
}
})
def add(self, group):
db = get_session()