diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-12-08 22:19:20 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-12-08 22:19:20 +0100 |
commit | 7fc415115024466ecf08b5b4ca5fc9472ad0ea2b (patch) | |
tree | 3476d20a7b8022829901b12e8fb56ba9081f5589 | |
parent | 876eda39648b3ac6b14dfb756dbfc8ff3ce20ce1 (diff) | |
download | docs-7fc415115024466ecf08b5b4ca5fc9472ad0ea2b.tar.gz docs-7fc415115024466ecf08b5b4ca5fc9472ad0ea2b.tar.bz2 docs-7fc415115024466ecf08b5b4ca5fc9472ad0ea2b.zip |
POST /map, by merchant
-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 |