diff --git a/cache/examples.json b/cache/examples.json index 459c9f8..d8fabcb 100644 --- a/cache/examples.json +++ b/cache/examples.json @@ -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": [{ "title": "Get a value", "description": "Get returns a value from the cache", @@ -12,17 +23,6 @@ "ttl": 0 } }], - "set": [{ - "title": "Set a value", - "description": "Set allows you to set a value", - "request": { - "key": "foo", - "value": "bar" - }, - "response": { - "status": "ok" - } - }], "delete": [{ "title": "Delete a value", "description": "Delete a value from the cache", diff --git a/location/examples.json b/location/examples.json index f016f7f..ab1af3f 100644 --- a/location/examples.json +++ b/location/examples.json @@ -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": [{ "title": "Save an entity", "description": "Save the location of an entity", @@ -33,6 +15,24 @@ }, "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": [{ "title": "Search for locations", "description": "Search a given radius for entities", diff --git a/rss/examples.json b/rss/examples.json index a06014a..29d6311 100644 --- a/rss/examples.json +++ b/rss/examples.json @@ -10,29 +10,6 @@ }, "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": [{ "title": "Read a feed", "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": {} }] } diff --git a/url/examples.json b/url/examples.json index 0022314..1fa246a 100644 --- a/url/examples.json +++ b/url/examples.json @@ -24,10 +24,10 @@ "proxy": [{ "title": "Resolve a short URL to a long destination URL", "request": { - "shortURL": "https://m3o.one/u3zS8YHmYp" + "shortURL": "https://m3o.one/u/ck6SGVkYp" }, "response": { "destinationURL": "https://mysite.com/this-is-a-rather-long-web-address" } }] -} \ No newline at end of file +}