From 5c998951a12797b0c5f8fd2388f78a6f49e3043c Mon Sep 17 00:00:00 2001 From: Dominic Wong Date: Thu, 9 Sep 2021 13:56:52 +0100 Subject: [PATCH] run check bool --- answer/examples.json | 1 + cache/examples.json | 5 +++++ currency/examples.json | 4 ++++ db/examples.json | 4 ++++ file/examples.json | 4 ++++ helloworld/examples.json | 1 + id/examples.json | 4 ++++ image/examples.json | 3 +++ ip/examples.json | 1 + location/examples.json | 6 ++++-- otp/examples.json | 2 ++ rss/examples.json | 4 ++++ sentiment/examples.json | 1 + stream/examples.json | 1 + url/examples.json | 3 +++ user/examples.json | 5 +++++ weather/examples.json | 1 + 17 files changed, 48 insertions(+), 2 deletions(-) diff --git a/answer/examples.json b/answer/examples.json index 2ca563e..ad884b7 100644 --- a/answer/examples.json +++ b/answer/examples.json @@ -2,6 +2,7 @@ "question": [{ "title": "Ask a question", "description": "Ask a question and get an instant answer", + "run_check": true, "request": { "query": "google" }, diff --git a/cache/examples.json b/cache/examples.json index d8fabcb..ca93445 100644 --- a/cache/examples.json +++ b/cache/examples.json @@ -3,6 +3,7 @@ "set": [{ "title": "Set a value", "description": "Set allows you to set a value", + "run_check": true, "request": { "key": "foo", "value": "bar" @@ -14,6 +15,7 @@ "get": [{ "title": "Get a value", "description": "Get returns a value from the cache", + "run_check": true, "request": { "key": "foo" }, @@ -26,6 +28,7 @@ "delete": [{ "title": "Delete a value", "description": "Delete a value from the cache", + "run_check": true, "request": { "key": "foo" }, @@ -36,6 +39,7 @@ "increment": [{ "title": "Increment a value", "description": "Increment a value by 2", + "run_check": true, "request": { "key": "counter", "value": 2 @@ -48,6 +52,7 @@ "decrement": [{ "title": "Decrement a value", "description": "Decrement a value by 2", + "run_check": true, "request": { "key": "counter", "value": 2 diff --git a/currency/examples.json b/currency/examples.json index c7342ee..d86fe71 100644 --- a/currency/examples.json +++ b/currency/examples.json @@ -3,6 +3,7 @@ "codes": [{ "title": "Get supported codes", "description": "Returns the supported currency codes (example response)", + "run_check": true, "request": {}, "response": { "codes": [ @@ -32,6 +33,7 @@ "rates": [{ "title": "Get rates for USD", "description": "Returns the rates for USD (sample response)", + "run_check": true, "request": { "code": "USD" }, @@ -54,6 +56,7 @@ "convert": [{ "title": "Convert USD to GBP", "description": "Convert from USD to GBP", + "run_check": true, "request": { "from": "USD", "to": "GBP" @@ -67,6 +70,7 @@ { "title": "Convert $10 USD to GBP", "description": "Convert $10 from USD to GBP", + "run_check": true, "request": { "from": "USD", "to": "GBP", diff --git a/db/examples.json b/db/examples.json index 6cd206b..647f273 100644 --- a/db/examples.json +++ b/db/examples.json @@ -1,6 +1,7 @@ { "create": [{ "title": "Create a record", + "run_check": true, "request": { "table": "users", "record": { @@ -16,6 +17,7 @@ }], "update": [{ "title": "Update a record", + "run_check": true, "request": { "table": "users", "record": { @@ -28,6 +30,7 @@ }], "read": [{ "title": "Read records", + "run_check": true, "request": { "table": "users", "query": "age == 43" @@ -43,6 +46,7 @@ }], "delete": [{ "title": "Delete a record", + "run_check": true, "request": { "table": "users", "id": "1" diff --git a/file/examples.json b/file/examples.json index 66b23a4..6a7597a 100644 --- a/file/examples.json +++ b/file/examples.json @@ -1,6 +1,7 @@ { "save": [{ "title": "Save file", + "run_check": true, "request": { "file": { "content": "file content example", @@ -13,6 +14,7 @@ }], "list": [{ "title": "List files", + "run_check": true, "request": { "project": "examples" }, @@ -28,6 +30,7 @@ }], "delete": [{ "title": "Delete file", + "run_check": true, "request": { "project": "examples", "path": "/document/text-files/file.txt" @@ -36,6 +39,7 @@ }], "read": [{ "title": "Read file", + "run_check": true, "request": { "project": "examples", "path": "/document/text-files/file.txt" diff --git a/helloworld/examples.json b/helloworld/examples.json index b8fb7c1..d83a991 100644 --- a/helloworld/examples.json +++ b/helloworld/examples.json @@ -3,6 +3,7 @@ "call": [{ "title": "Call the helloworld service", "description": "Helloworld is a simple example that takes a name and returns a personalised message", + "run_check": true, "request": { "name": "John" }, diff --git a/id/examples.json b/id/examples.json index 999384b..cf5641c 100644 --- a/id/examples.json +++ b/id/examples.json @@ -2,6 +2,7 @@ { "generate": [{ "title": "Generate a unique ID", + "run_check": true, "request": { "type": "uuid" }, @@ -12,6 +13,7 @@ }, { "title": "Generate a short ID", + "run_check": true, "request": { "type": "shortid" }, @@ -22,6 +24,7 @@ }, { "title": "Generate a snowflake ID", + "run_check": true, "request": { "type": "snowflake" }, @@ -32,6 +35,7 @@ }, { "title": "Generate a bigflake ID", + "run_check": true, "request": { "type": "bigflake" }, diff --git a/image/examples.json b/image/examples.json index 2f6fb85..4d63a9e 100644 --- a/image/examples.json +++ b/image/examples.json @@ -2,6 +2,7 @@ "resize": [{ "title": "Base64 to hosted image", "description": "Resize an input base64 encoded image and store the resulting resized image on our CDN.", + "run_check": true, "request": { "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", "outputURL": true, @@ -15,6 +16,7 @@ }, { "title": "Base64 to base64 image", "description": "Resize a base64 encoded image on the fly without storing it anywhere", + "run_check": true, "request": { "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", "width": 100, @@ -26,6 +28,7 @@ },{ "title": "Base64 to base64 image with cropping", "description": "Resize a base64 encoded image on the fly without storing it anywhere", + "run_check": true, "request": { "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", "width": 100, diff --git a/ip/examples.json b/ip/examples.json index 5cfc203..3746f30 100644 --- a/ip/examples.json +++ b/ip/examples.json @@ -2,6 +2,7 @@ "lookup": [{ "title": "Lookup IP info", "description": "Lookup the location info for an IP address", + "run_check": true, "request": { "ip": "93.148.214.31" }, diff --git a/location/examples.json b/location/examples.json index ab1af3f..71b7bb6 100644 --- a/location/examples.json +++ b/location/examples.json @@ -2,6 +2,7 @@ "save": [{ "title": "Save an entity", "description": "Save the location of an entity", + "run_check": true, "request": { "entity": { "id": "1", @@ -18,6 +19,7 @@ "read": [{ "title": "Get location by ID", "description": "Lookup the location of an entity by ID", + "run_check": true, "request": { "id": "1" }, @@ -36,6 +38,7 @@ "search": [{ "title": "Search for locations", "description": "Search a given radius for entities", + "run_check": true, "request": { "center": { "latitude": 51.511061, @@ -55,7 +58,6 @@ "timestamp": "1622802761" } }] - }, - "response": {} + } }] } diff --git a/otp/examples.json b/otp/examples.json index 93a20f3..5696774 100644 --- a/otp/examples.json +++ b/otp/examples.json @@ -3,6 +3,7 @@ "generate": [{ "title": "Generate OTP", "description": "Generate a one time password for a unique id, email or user", + "run_check": true, "request": { "id": "asim@example.com" }, @@ -13,6 +14,7 @@ "validate": [{ "title": "Validate OTP", "description": "Validate the one time password created via generate", + "run_check": true, "request": { "id": "asim@example.com", "code": "656211" diff --git a/rss/examples.json b/rss/examples.json index 29d6311..f9dbbe9 100644 --- a/rss/examples.json +++ b/rss/examples.json @@ -3,6 +3,7 @@ "add": [{ "title": "Add a new feed", "description": "Add a new rss feed to the crawler", + "run_check": true, "request": { "name": "bbc", "url": "http://feeds.bbci.co.uk/news/rss.xml", @@ -13,6 +14,7 @@ "feed": [{ "title": "Read a feed", "description": "Read an rss feed by name", + "run_check": true, "request": { "name": "bbc" }, @@ -40,6 +42,7 @@ "list": [{ "title": "List rss feeds", "description": "List the saved rss feeds", + "run_check": true, "request": {}, "response": { "feeds": [ @@ -55,6 +58,7 @@ "remove": [{ "title": "Remove a feed", "description": "Remove an rss feed from the crawler", + "run_check": true, "request": { "name": "bbc" }, diff --git a/sentiment/examples.json b/sentiment/examples.json index ad402ac..cf77822 100644 --- a/sentiment/examples.json +++ b/sentiment/examples.json @@ -2,6 +2,7 @@ "analyze": [{ "title": "Analyze a piece of text", "description": "Analyze and score a piece of text", + "run_check": true, "request": { "text": "this is amazing" }, diff --git a/stream/examples.json b/stream/examples.json index 9f504b3..23f2df6 100644 --- a/stream/examples.json +++ b/stream/examples.json @@ -3,6 +3,7 @@ "publish": [{ "title": "Publish a message", "description": "Publish a message to a topic on the stream", + "run_check": true, "request": { "topic": "events", "message": {"id": "1", "type": "signup", "user": "john"} diff --git a/url/examples.json b/url/examples.json index 1fa246a..2c4e06d 100644 --- a/url/examples.json +++ b/url/examples.json @@ -2,6 +2,7 @@ "list": [{ "title": "List your shortened URLs", "description": "List the token holder's shortened URLs", + "run_check": true, "request": { }, "response": { @@ -14,6 +15,7 @@ }], "shorten": [{ "title": "Shorten a long URL", + "run_check": true, "request": { "destinationURL": "https://mysite.com/this-is-a-rather-long-web-address" }, @@ -23,6 +25,7 @@ }], "proxy": [{ "title": "Resolve a short URL to a long destination URL", + "run_check": true, "request": { "shortURL": "https://m3o.one/u/ck6SGVkYp" }, diff --git a/user/examples.json b/user/examples.json index 55fcf5b..7053881 100644 --- a/user/examples.json +++ b/user/examples.json @@ -1,6 +1,7 @@ { "create": [{ "title": "Create an account", + "run_check": true, "request": { "id": "usrid-1", "username": "usrname-1", @@ -12,6 +13,7 @@ }], "read": [{ "title": "Read an account by id", + "run_check": true, "request": { "id": "usrid-1" }, @@ -26,6 +28,7 @@ } },{ "title": "Read account by username or email", + "run_check": true, "request": { "username": "usrname-1" }, @@ -41,6 +44,7 @@ },{ "title": "Read account by email", + "run_check": true, "request": { "email": "joe@example.com" }, @@ -56,6 +60,7 @@ }], "sendVerificationEmail": [{ "title": "Send verification email", + "run_check": true, "request": { "email": "joe@example.com", "subject": "Email verification", diff --git a/weather/examples.json b/weather/examples.json index 4f2b269..104bb9d 100644 --- a/weather/examples.json +++ b/weather/examples.json @@ -2,6 +2,7 @@ "now": [{ "title": "Get current weather", "description": "Get the weather forecast right at this moment", + "run_check": true, "request": { "location": "london" },