[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-api] branch master updated: polishing bank API
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-api] branch master updated: polishing bank API |
Date: |
Thu, 04 May 2017 09:32:14 +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 8d7b4ec polishing bank API
8d7b4ec is described below
commit 8d7b4ecb5ad96a3599ff3c70f8865f4078075e03
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu May 4 09:31:59 2017 +0200
polishing bank API
---
api/api-bank.rst | 42 ++++++++++++++----------------------------
1 file changed, 14 insertions(+), 28 deletions(-)
diff --git a/api/api-bank.rst b/api/api-bank.rst
index d15b821..a9f0e72 100644
--- a/api/api-bank.rst
+++ b/api/api-bank.rst
@@ -38,7 +38,7 @@ request.
:status 200 OK: The request has been correctly handled, so the funds have been
transferred to the recipient's account
-:status 400 Bad Request: The bank replies a `BankIncomingError`_ object
+:status 400 Bad Request: The bank replies a `BankError`_ object
**Details:**
@@ -96,13 +96,13 @@ request.
-.. _BankIncomingError:
+.. _BankError:
.. code-block:: tsref
- interface BankIncomingError {
+ interface BankError {
// Human readable explanation of the failure.
- reason: string;
+ error: string;
}
@@ -115,31 +115,9 @@ the number of results.
.. http:post:: /history
- **Request** JSON object whose field `data` is an array of `HistoryRequest`_
elements.
+ **Request** JSON object of type `HistoryRequest`_.
-..
- NOTE: According to the last research, Django has no way of
- returning a straight array.
-
- **Response** JSON object 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;
-
- }
+ **Response** JSON object whose field `data` is an array of type
`BankTransaction`_.
.. _BankTransaction:
.. code-block:: tsref
@@ -189,4 +167,12 @@ the number of results.
// Optional value denoting how many rows we want receive.
// If not given, then it defaults to 10.
delta: number;
+
+ // 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;
+
+
}
--
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: polishing bank API,
gnunet <=