api needs account balance

This commit is contained in:
seba 2011-09-29 02:37:46 +02:00
parent b3ec6090d9
commit 85c37459c1
2 changed files with 9 additions and 2 deletions

View File

@ -47,8 +47,8 @@ buyable/
""" list all types (groups) which an item can belong to """ """ list all types (groups) which an item can belong to """
account/ account/
transactions/ transactions/ or transfers/
transact/ # sollte eigentlich transfer heißen imo transact/ or transfer/ # sollte eigentlich transfer heißen imo
GET (=list) GET (=list)
""" list your transactions """ """ list your transactions """
num list $num entries num list $num entries
@ -60,6 +60,8 @@ account/
GET (=list) GET (=list)
""" list all available transaction types" """ list all available transaction types"
balance/ balance/
GET (=show)
""" return current account balance """
auth/ auth/
blob/ blob/
GET (=get) GET (=get)

View File

@ -57,6 +57,11 @@ class TransactionTypeHandler(BaseHandler):
allowed_methods = ('GET',) allowed_methods = ('GET',)
model = TransactionType model = TransactionType
class AccountBalance(BaseHandler):
allowed_methods = ('GET',)
def read(self, request):
pass
class AuthBlobHandler(BaseHandler): class AuthBlobHandler(BaseHandler):
# allowed_methods = ('GET', 'POST') # allowed_methods = ('GET', 'POST')
# model = # model =