about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-05-05 17:35:13 +0200
committerfranck cuny <franck@lumberjaph.net>2011-05-05 17:35:13 +0200
commite68c8681c7d1ec7e287aeb5ebd99dca3b82f2a2a (patch)
tree36a45ffe44dde09b0dd4da6227dc41804f41ebbe
parentadd opencalais spec (diff)
parentstart geo API (diff)
downloadapi-description-e68c8681c7d1ec7e287aeb5ebd99dca3b82f2a2a.tar.gz
Merge branch 'master' of github.com:SPORE/api-description
* 'master' of github.com:SPORE/api-description:
  start geo API
-rw-r--r--services/geonames.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/services/geonames.json b/services/geonames.json
new file mode 100644
index 0000000..7301bcc
--- /dev/null
+++ b/services/geonames.json
@@ -0,0 +1,18 @@
+{
+"base_url": "http://api.geonames.org",
+"version": "0.1",
+"name": "GeoNames",
+"authority": "GITHUB:franckcuny",
+"meta": {
+  "documentation": "http://www.geonames.org/export/web-services.html",
+},
+"methods": {
+  "search": {
+    "method": "GET",
+    "path" : "/searchJSON",
+    "expected_status": ["200"],
+    "optional_params": ["maxRows"],
+    "required_params": ["q"]
+  }
+}
+}