From 910c0b51ce477f7153ffed7904e1e458d2670b0c Mon Sep 17 00:00:00 2001 From: Janos Dobronszki Date: Mon, 8 Nov 2021 15:48:33 +0000 Subject: [PATCH] Introducing "idempotent" flag for examples (#263) --- answer/examples.json | 1 + cache/examples.json | 1 + db/examples.json | 1 + file/examples.json | 1 + helloworld/examples.json | 5 ++++- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/answer/examples.json b/answer/examples.json index bf9aacc..b4ecb0d 100644 --- a/answer/examples.json +++ b/answer/examples.json @@ -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" }, diff --git a/cache/examples.json b/cache/examples.json index ca93445..63935d4 100644 --- a/cache/examples.json +++ b/cache/examples.json @@ -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" diff --git a/db/examples.json b/db/examples.json index d7642f0..cb135ff 100644 --- a/db/examples.json +++ b/db/examples.json @@ -35,6 +35,7 @@ { "title": "Read records", "run_check": true, + "idempotent": true, "request": { "table": "users", "query": "age == 43" diff --git a/file/examples.json b/file/examples.json index 6a7597a..dfd3577 100644 --- a/file/examples.json +++ b/file/examples.json @@ -15,6 +15,7 @@ "list": [{ "title": "List files", "run_check": true, + "idempotent": true, "request": { "project": "examples" }, diff --git a/helloworld/examples.json b/helloworld/examples.json index 84ecd39..ba1c011 100644 --- a/helloworld/examples.json +++ b/helloworld/examples.json @@ -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"