From 8b082023e9765ec6f7d85a8001d62dcf4db71c0f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 26 Jun 2012 13:59:27 +0200 Subject: [PATCH] add some more docs for findClips --- pandora/annotation/views.py | 16 +++++++++++++--- pandora/clip/views.py | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/pandora/annotation/views.py b/pandora/annotation/views.py index 38dfba12..51d70a6c 100644 --- a/pandora/annotation/views.py +++ b/pandora/annotation/views.py @@ -67,10 +67,20 @@ def order_query(qs, sort): def findAnnotations(request): ''' param data { - query: ... - itemsQuery: ... + query: { + conditions: [], + operator: '&' + }, + itemsQuery: { + conditions: [], + operator: '&' + }, + keys: [], + position: int, + positions: [], + range: [in, out], + sort: [] } - return { 'status': {'code': int, 'text': string} 'data': { diff --git a/pandora/clip/views.py b/pandora/clip/views.py index a39c96b5..0f2ae7bc 100644 --- a/pandora/clip/views.py +++ b/pandora/clip/views.py @@ -74,8 +74,19 @@ def order_query(qs, sort): def findClips(request): ''' param data { - query: ... - itemsQuery: ... + query: { + conditions: [], + operator: '&' + }, + itemsQuery: { + conditions: [], + operator: '&' + }, + keys: [], + position: int, + positions: [], + range: [in, out], + sort: [] } return {