add api docs

This commit is contained in:
rolux 2014-12-18 13:38:20 +00:00
commit cf836ec172
4 changed files with 33 additions and 18 deletions

View file

@ -323,6 +323,18 @@ def direct_upload(request):
@login_required_json
def taskStatus(request, data):
'''
Gets the status for a task
takes {
taskId: string // taskId
}
returns {
taskId: string, // taskId
status: string, // status, 'PENDING' or 'OK'
result: object // result data
}
note: To be deprecated, will be wrapped in regular API call
'''
#FIXME: should check if user has permissions to get status
if 'taskId' in data:
task_id = data['taskId']