More API documentation
This commit is contained in:
1 parent
a5cc1859d1
commit
b164674ff7
7 files changed
+88
-31
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user