[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-api] branch master updated: bank's /history used to
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-api] branch master updated: bank's /history used to be a mix of POSTed JSON *and* URI's parameters (!). Making all POSTed JSON. |
Date: |
Wed, 03 May 2017 21:30:04 +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 9c2673a bank's /history used to be a mix of POSTed JSON *and* URI's
parameters (!). Making all POSTed JSON.
9c2673a is described below
commit 9c2673a675599c1d5b84f26b4ce2dee13aa5640a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 3 21:29:05 2017 +0200
bank's /history used to be a mix of POSTed JSON *and*
URI's parameters (!). Making all POSTed JSON.
---
api/api-bank.rst | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/api/api-bank.rst b/api/api-bank.rst
index c1b9feb..8bfffa0 100644
--- a/api/api-bank.rst
+++ b/api/api-bank.rst
@@ -115,16 +115,28 @@ the number of results.
.. http:post:: /history
- **Request**
- :query direction: Optional parameter that lets the caller specify
- only incoming, outgoing, or both types of records. If not given,
- then the API will return both types; if set to `credit` (`debit`),
- only incoming (outgoing) records are returned.
+ **Request** JSON of type `HistoryRequest`_.
**Response** JSON array of type `BankTransaction`_.
+.. _HistoryRequest:
+.. code-block:: tsref
+
+ interface HistoryRequest {
+
+ // Authentication credentials to get right of
+ // issuing this call.
+ auth: BasicAuth;
+
+ // Optional parameter that lets the caller specify
+ // only incoming, outgoing, or both types of records. If not given,
+ // then the API will return both types; if set to `credit` (`debit`),
+ // only incoming (outgoing) records are returned.
+ direction: string;
+
+ }
.. _BankTransaction:
.. code-block:: tsref
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-api] branch master updated: bank's /history used to be a mix of POSTed JSON *and* URI's parameters (!). Making all POSTed JSON.,
gnunet <=