commit e9d64452bd321c084132a214511009b4a77fc9f1 parent 8c0b4797806abbf86bc80f1d6fd878d580af4feb Author: Marcello Stanisci <marcello.stanisci@inria.fr> Date: Tue, 4 Oct 2016 17:58:06 +0200 /history, not finished Diffstat:
| M | api-merchant.rst | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/api-merchant.rst b/api-merchant.rst @@ -286,6 +286,32 @@ The following API are made available by the merchant's `backend` to the merchant deposit_fee: Amount; } +.. http:get:: /history + + Returns transactions up to some point in the past + + **Request** + + :query date: only transactions *jounger* than this parameter will be returned. It's a timestamp, given in seconds. + + **Response** + :status 200 OK: + The response is a JSON `array` of `TransactionHistory`_ + + .. _tsref-type-TransactionHistory: + .. _TransactionHistory: + .. code-block:: tsref + + interface TransactionHistory { + // transaction id + transaction_id: number; + + // Hashcode of the relevant contract + TBD FIXME + + + } + --------- Encodings ---------