add api docs
This commit is contained in:
parent
3a6c3338a2
commit
cf836ec172
4 changed files with 33 additions and 18 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue