mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
add increment/decrement examples
This commit is contained in:
24
cache/examples.json
vendored
24
cache/examples.json
vendored
@@ -32,5 +32,29 @@
|
|||||||
"response": {
|
"response": {
|
||||||
"status": "ok"
|
"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
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user