From 7fc415115024466ecf08b5b4ca5fc9472ad0ea2b Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 8 Dec 2016 22:19:20 +0100 Subject: POST /map, by merchant --- api-merchant.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/api-merchant.rst b/api-merchant.rst index 0dbd1006..bfa8bf12 100644 --- a/api-merchant.rst +++ b/api-merchant.rst @@ -380,6 +380,32 @@ The following API are made available by the merchant's `backend` to the merchant } +.. http:post:: /map + + Store a pair formed by a plain contract and its hashcode into the database. + + **Request** + + The frontend passes a `MapRequest`_ object. + + **Response** + + :status 200 OK: + The data has been successfully stored. + +.. _MapRequest: +.. _tsref-type-MapRequest: +.. code-block:: tsref + + interface MapRequest { + + // Plain contract to be stored + contract: Contract; + + // contract's hashcode + h_contract: HashCode; + } + .. http:get:: /history Returns transactions up to some point in the past -- cgit v1.2.3