From 85151c8a0474e47c5b69f134be3d4af778f004d0 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 19 May 2021 15:48:57 +0100 Subject: [PATCH] add increment/decrement examples --- cache/examples.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/cache/examples.json b/cache/examples.json index cc91186..459c9f8 100644 --- a/cache/examples.json +++ b/cache/examples.json @@ -32,5 +32,29 @@ "response": { "status": "ok" } + }], + "increment": [{ + "title": "Increment a value", + "description": "Increment a value by 2", + "request": { + "key": "counter", + "value": 2 + }, + "response": { + "key": "counter", + "value": 2 + } + }], + "decrement": [{ + "title": "Decrement a value", + "description": "Decrement a value by 2", + "request": { + "key": "counter", + "value": 2 + }, + "response": { + "key": "counter", + "value": 0 + } }] }