mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 12:34:44 +00:00
reorder examples files
This commit is contained in:
22
cache/examples.json
vendored
22
cache/examples.json
vendored
@@ -1,5 +1,16 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
|
"set": [{
|
||||||
|
"title": "Set a value",
|
||||||
|
"description": "Set allows you to set a value",
|
||||||
|
"request": {
|
||||||
|
"key": "foo",
|
||||||
|
"value": "bar"
|
||||||
|
},
|
||||||
|
"response": {
|
||||||
|
"status": "ok"
|
||||||
|
}
|
||||||
|
}],
|
||||||
"get": [{
|
"get": [{
|
||||||
"title": "Get a value",
|
"title": "Get a value",
|
||||||
"description": "Get returns a value from the cache",
|
"description": "Get returns a value from the cache",
|
||||||
@@ -12,17 +23,6 @@
|
|||||||
"ttl": 0
|
"ttl": 0
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
"set": [{
|
|
||||||
"title": "Set a value",
|
|
||||||
"description": "Set allows you to set a value",
|
|
||||||
"request": {
|
|
||||||
"key": "foo",
|
|
||||||
"value": "bar"
|
|
||||||
},
|
|
||||||
"response": {
|
|
||||||
"status": "ok"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"delete": [{
|
"delete": [{
|
||||||
"title": "Delete a value",
|
"title": "Delete a value",
|
||||||
"description": "Delete a value from the cache",
|
"description": "Delete a value from the cache",
|
||||||
|
|||||||
@@ -1,22 +1,4 @@
|
|||||||
{
|
{
|
||||||
"read": [{
|
|
||||||
"title": "Get location by ID",
|
|
||||||
"description": "Lookup the location of an entity by ID",
|
|
||||||
"request": {
|
|
||||||
"id": "1"
|
|
||||||
},
|
|
||||||
"response": {
|
|
||||||
"entity": {
|
|
||||||
"id": "1",
|
|
||||||
"type": "bike",
|
|
||||||
"location": {
|
|
||||||
"latitude": 51.511061,
|
|
||||||
"longitude": -0.120022,
|
|
||||||
"timestamp": "1622802761"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"save": [{
|
"save": [{
|
||||||
"title": "Save an entity",
|
"title": "Save an entity",
|
||||||
"description": "Save the location of an entity",
|
"description": "Save the location of an entity",
|
||||||
@@ -33,6 +15,24 @@
|
|||||||
},
|
},
|
||||||
"response": {}
|
"response": {}
|
||||||
}],
|
}],
|
||||||
|
"read": [{
|
||||||
|
"title": "Get location by ID",
|
||||||
|
"description": "Lookup the location of an entity by ID",
|
||||||
|
"request": {
|
||||||
|
"id": "1"
|
||||||
|
},
|
||||||
|
"response": {
|
||||||
|
"entity": {
|
||||||
|
"id": "1",
|
||||||
|
"type": "bike",
|
||||||
|
"location": {
|
||||||
|
"latitude": 51.511061,
|
||||||
|
"longitude": -0.120022,
|
||||||
|
"timestamp": "1622802761"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}],
|
||||||
"search": [{
|
"search": [{
|
||||||
"title": "Search for locations",
|
"title": "Search for locations",
|
||||||
"description": "Search a given radius for entities",
|
"description": "Search a given radius for entities",
|
||||||
|
|||||||
@@ -10,29 +10,6 @@
|
|||||||
},
|
},
|
||||||
"response": {}
|
"response": {}
|
||||||
}],
|
}],
|
||||||
"remove": [{
|
|
||||||
"title": "Remove a feed",
|
|
||||||
"description": "Remove an rss feed from the crawler",
|
|
||||||
"request": {
|
|
||||||
"name": "bbc"
|
|
||||||
},
|
|
||||||
"response": {}
|
|
||||||
}],
|
|
||||||
"list": [{
|
|
||||||
"title": "List rss feeds",
|
|
||||||
"description": "List the saved rss feeds",
|
|
||||||
"request": {},
|
|
||||||
"response": {
|
|
||||||
"feeds": [
|
|
||||||
{
|
|
||||||
"id": "micro/asim/18882020881032690",
|
|
||||||
"name": "bbc",
|
|
||||||
"url": "http://feeds.bbci.co.uk/news/rss.xml",
|
|
||||||
"category": "news"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"feed": [{
|
"feed": [{
|
||||||
"title": "Read a feed",
|
"title": "Read a feed",
|
||||||
"description": "Read an rss feed by name",
|
"description": "Read an rss feed by name",
|
||||||
@@ -59,5 +36,28 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}],
|
||||||
|
"list": [{
|
||||||
|
"title": "List rss feeds",
|
||||||
|
"description": "List the saved rss feeds",
|
||||||
|
"request": {},
|
||||||
|
"response": {
|
||||||
|
"feeds": [
|
||||||
|
{
|
||||||
|
"id": "micro/asim/18882020881032690",
|
||||||
|
"name": "bbc",
|
||||||
|
"url": "http://feeds.bbci.co.uk/news/rss.xml",
|
||||||
|
"category": "news"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
"remove": [{
|
||||||
|
"title": "Remove a feed",
|
||||||
|
"description": "Remove an rss feed from the crawler",
|
||||||
|
"request": {
|
||||||
|
"name": "bbc"
|
||||||
|
},
|
||||||
|
"response": {}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"proxy": [{
|
"proxy": [{
|
||||||
"title": "Resolve a short URL to a long destination URL",
|
"title": "Resolve a short URL to a long destination URL",
|
||||||
"request": {
|
"request": {
|
||||||
"shortURL": "https://m3o.one/u3zS8YHmYp"
|
"shortURL": "https://m3o.one/u/ck6SGVkYp"
|
||||||
},
|
},
|
||||||
"response": {
|
"response": {
|
||||||
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
|
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
|
||||||
|
|||||||
Reference in New Issue
Block a user