start to improve API docs
This commit is contained in:
parent
1e3fa3c98e
commit
9e5fea2d06
3 changed files with 53 additions and 41 deletions
|
|
@ -497,16 +497,16 @@ actions.register(get)
|
|||
@login_required_json
|
||||
def add(request, data):
|
||||
'''
|
||||
takes {
|
||||
title: string, //(optional)
|
||||
}
|
||||
returns {
|
||||
id:
|
||||
name:
|
||||
...
|
||||
}
|
||||
Adds a new item (without video)
|
||||
takes {
|
||||
title: string (optional)
|
||||
}
|
||||
returns {
|
||||
id: string,
|
||||
title: string,
|
||||
...
|
||||
}
|
||||
'''
|
||||
|
||||
if not request.user.get_profile().capability('canAddItems'):
|
||||
response = json_response(status=403, text='permissino denied')
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue