mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 10:54:28 +00:00
run check bool
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"question": [{
|
||||
"title": "Ask a question",
|
||||
"description": "Ask a question and get an instant answer",
|
||||
"run_check": true,
|
||||
"request": {
|
||||
"query": "google"
|
||||
},
|
||||
|
||||
5
cache/examples.json
vendored
5
cache/examples.json
vendored
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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": {}
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"now": [{
|
||||
"title": "Get current weather",
|
||||
"description": "Get the weather forecast right at this moment",
|
||||
"run_check": true,
|
||||
"request": {
|
||||
"location": "london"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user