mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 02:44:27 +00:00
Introducing "idempotent" flag for examples (#263)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"title": "Ask a question",
|
||||
"description": "Ask a question and get an instant answer",
|
||||
"run_check": true,
|
||||
"idempotent": true,
|
||||
"request": {
|
||||
"query": "microsoft"
|
||||
},
|
||||
|
||||
1
cache/examples.json
vendored
1
cache/examples.json
vendored
@@ -4,6 +4,7 @@
|
||||
"title": "Set a value",
|
||||
"description": "Set allows you to set a value",
|
||||
"run_check": true,
|
||||
"idempotent": true,
|
||||
"request": {
|
||||
"key": "foo",
|
||||
"value": "bar"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
{
|
||||
"title": "Read records",
|
||||
"run_check": true,
|
||||
"idempotent": true,
|
||||
"request": {
|
||||
"table": "users",
|
||||
"query": "age == 43"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"list": [{
|
||||
"title": "List files",
|
||||
"run_check": true,
|
||||
"idempotent": true,
|
||||
"request": {
|
||||
"project": "examples"
|
||||
},
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"title": "Call the helloworld service",
|
||||
"description": "Helloworld is a simple example that takes a name and returns a personalised message",
|
||||
"run_check": true,
|
||||
"idempotent": true,
|
||||
"request": {
|
||||
"name": "John"
|
||||
},
|
||||
@@ -14,8 +15,10 @@
|
||||
"stream": [{
|
||||
"title": "Streams responses from the server using websockets",
|
||||
"run_check": true,
|
||||
"idempotent": true,
|
||||
"request": {
|
||||
"name": "John"
|
||||
"name": "John",
|
||||
"messages": 10
|
||||
},
|
||||
"response": {
|
||||
"message": "Hello John"
|
||||
|
||||
Reference in New Issue
Block a user