summaryrefslogtreecommitdiff
path: root/taler-mcig.rst
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2021-03-19 01:00:06 -0400
committerThien-Thi Nguyen <ttn@gnuvola.org>2021-03-19 01:00:06 -0400
commit32bdd815af700b2307314509e7eead41b1192d75 (patch)
tree0b111dd54ce6f8aa80658e0722baa89ffcc47a8a /taler-mcig.rst
parente8d07b784fcb81eea077264ab52e0d92013edc26 (diff)
downloaddocs-32bdd815af700b2307314509e7eead41b1192d75.tar.gz
docs-32bdd815af700b2307314509e7eead41b1192d75.tar.bz2
docs-32bdd815af700b2307314509e7eead41b1192d75.zip
add ‘image’ and ‘_forgettable’ to product ‘p001’
Diffstat (limited to 'taler-mcig.rst')
-rw-r--r--taler-mcig.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/taler-mcig.rst b/taler-mcig.rst
index 8fa8c5fe..1324b038 100644
--- a/taler-mcig.rst
+++ b/taler-mcig.rst
@@ -319,16 +319,17 @@ M: :http:post:`/instances/default/private/products`
"product_id": "p001",
"description": "piano",
"unit": "unit",
+ "image": "data:image/png;base64;AAA=",
"price": "KUDOS:20000.0",
"taxes": [],
"total_stock": 3,
- "next_restock": "2021-04-22"
+ "next_restock": "2021-04-22",
+ "_forgettable": ["image"]
}
// (backend returns 204 No content)
- // FIXME: also add product preview image, and
- // maybe use that as a good example for a
- // forgettable detail
+Note that the ``image`` field is marked as "forgettable".
+This will come into play later (see below).
M: :http:post:`/instances/default/private/products`