Browse Source

Removed transfer (transact-alias) urls from api2

master
Sebastian Lohff 11 years ago
parent
commit
c2d144ea91
  1. 2
      k4ever/api2/urls.py
  2. 50
      k4ever/docs/django/api.rst

2
k4ever/api2/urls.py

@ -49,9 +49,7 @@ urlpatterns = patterns('', @@ -49,9 +49,7 @@ urlpatterns = patterns('',
url(r'buyable/history/?$', historyRes),
url(r'account/transactions/transact/?$', transactionTransactRes),
url(r'account/transfers/transfer/?$', transactionTransactRes),
url(r'account/transactions/types/?$', transactionTypeRes),
url(r'account/transfers/types/?$', transactionTypeRes),
url(r'account/transactions/virtual/?$', transactionVirtualRes),
url(r'account/balance/?$', accountBalanceRes),

50
k4ever/docs/django/api.rst

@ -99,8 +99,8 @@ to the handler or the responsible method for more documentation or code. @@ -99,8 +99,8 @@ to the handler or the responsible method for more documentation or code.
========= =================
**account/**
**transactions/** or **transfers/**
:class:`transact/ or transfer/ <api2.handlers.TransactionTransactHandler>`
**transactions/**
:class:`transact/ <api2.handlers.TransactionTransactHandler>`
:func:`GET <api2.handlers.TransactionTransactHandler.read>`
List the user's last transactions
@ -120,32 +120,32 @@ to the handler or the responsible method for more documentation or code. @@ -120,32 +120,32 @@ to the handler or the responsible method for more documentation or code.
type [required] Type of transaction (id)
========= =================
:class:`types/ <api2.handlers.TransactionTypeHandler>`
:func:`GET <api2.handlers.TransactionTypeHandler.read>`
List all available :class:`Transaction Types <buyable.models.TransactionType>`
:class:`balance/ <api2.handlers.AccountBalanceHandler>`
:func:`GET <api2.handlers.AccountBalanceHandler.read>`
Get user's account balance
:class:`virtual/ <api2.handlers.TransactionVirtualHandler>`
:func:`GET <api2.handlers.TransactionVirtualHandler.read>`
Return the user's last virtual transactions (inbound and outbound)
:class:`types/ <api2.handlers.TransactionTypeHandler>`
:func:`GET <api2.handlers.TransactionTypeHandler.read>`
List all available :class:`Transaction Types <buyable.models.TransactionType>`
:class:`balance/ <api2.handlers.AccountBalanceHandler>`
:func:`GET <api2.handlers.AccountBalanceHandler.read>`
Get user's account balance
:class:`virtual/ <api2.handlers.TransactionVirtualHandler>`
:func:`GET <api2.handlers.TransactionVirtualHandler.read>`
Return the user's last virtual transactions (inbound and outbound)
========= =================
Parameter Description
========= =================
num Number of entries to return
========= =================
========= =================
Parameter Description
========= =================
num Number of entries to return
========= =================
:func:`POST <api2.handlers.TransactionVirtualHandler.create>`
Transact money from the users to another users account.
:func:`POST <api2.handlers.TransactionVirtualHandler.create>`
Transact money from the users to another users account.
========= =================
Parameter Description
========= =================
amount [required] Amount to transact
recipient [required] User that will get the money
comment [required] Comment, why the money was transacted
========= =================
========= =================
Parameter Description
========= =================
amount [required] Amount to transact
recipient [required] User that will get the money
comment [required] Comment, why the money was transacted
========= =================
**auth/**
:class:`blob/ <api2.handlers.AuthBlobHandler>`

Loading…
Cancel
Save