commit 86aff5a8f24ec884bbc94509b456d87c52a7ada0 parent 5a3b200c7b4054638eb9231bb78ff825cb880928 Author: Marcello Stanisci <marcello.stanisci@inria.fr> Date: Fri, 31 Mar 2017 00:38:42 +0200 finishing bank's /history Diffstat:
| M | api/api-bank.rst | | | 22 | +++++++++++++++++++++- |
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/api/api-bank.rst b/api/api-bank.rst @@ -100,12 +100,32 @@ the number of results. .. http:post:: /history -**Request** +**Request:** The body of this request must have the format of a `HistoryRequest`_. TBD **Response** TBD +.. _HistoryRequest: +.. code-block:: tsref + + interface HistoryRequest { + + // The username of the user calling this API. + username: string; + + // Password of the user calling this API. + password: string; + + // Row number identifier in the bank's database + // such that only rows with GREATER (meaning younger + // records) row number will be returned. + start: number; + + // How many rows we want returned, at most. + delta: number; + } + -------- Util API --------