diff options
-rw-r--r-- | api-merchant.rst | 26 |
1 files changed, 26 insertions, 0 deletions
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 |