taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 7fc415115024466ecf08b5b4ca5fc9472ad0ea2b
parent 876eda39648b3ac6b14dfb756dbfc8ff3ce20ce1
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu,  8 Dec 2016 22:19:20 +0100

POST /map, by merchant

Diffstat:
Mapi-merchant.rst | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git 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