gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-api] branch master updated: Spec'ing #5666.


From: gnunet
Subject: [GNUnet-SVN] [taler-api] branch master updated: Spec'ing #5666.
Date: Tue, 02 Apr 2019 18:08:59 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository api.

The following commit(s) were added to refs/heads/master by this push:
     new 31aba41  Spec'ing #5666.
31aba41 is described below

commit 31aba41ec0294573e3c7a249abfbc9a5ceed0d6d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Apr 2 18:08:52 2019 +0200

    Spec'ing #5666.
---
 api-bank.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/api-bank.rst b/api-bank.rst
index f3024d8..9256e3d 100644
--- a/api-bank.rst
+++ b/api-bank.rst
@@ -155,6 +155,27 @@ request.
   :status 404 Not Found: The bank does not know this rowid for this account.
 
 
+.. http:get:: /history-range
+
+  Filters and returns the list of transactions in the time range specified by 
`start` and `end`
+
+  **Request**
+
+  :query auth: authentication method used.  At this stage of development, only 
value `basic` is accepted.  Note that username and password need to be given as 
request's headers.  The dedicated headers are: `X-Taler-Bank-Username` and 
`X-Taler-Bank-Password`.
+  :query start: unix timestamp indicating the oldest transaction accepted in 
the result.
+  :query end: unix timestamp indicating the youngest transaction accepted in 
the result.
+  :query direction: argument taking values `debit` or `credit`, according to 
the caller willing to receive both incoming and outgoing, only outgoing, or 
only incoming records.  Use `both` to return both directions.
+  :query cancelled: argument taking values `omit` or `show` to filter out 
rejected transactions
+  :query account_number: bank account whose history is to be returned.  
*Currently ignored*, as multiple bank accounts per user are not implemented yet.
+  :query ordering: can be `descending` or `ascending` and regulates whether 
the row are returned youger-to-older or vice versa.  Defaults to `descending`.
+
+
+  **Response**
+
+  :status 200 OK: JSON object whose field `data` is an array of type 
`BankTransaction`_.
+  :status 204 No content: in case no records exist for the targeted user.
+
+
 .. http:get:: /history
 
   Filters and returns the list of transactions of the customer specified in 
the request.

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]