about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-14 16:43:09 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-14 16:43:09 +0200
commit753a89961660dd721844880784f3d6a75383a59d (patch)
treeb31e3b070d147ec6eb21a133c6efe18e87336508
parentadd backtype and backtweet (diff)
downloadapi-description-753a89961660dd721844880784f3d6a75383a59d.tar.gz
presque
-rw-r--r--apps/presque.json130
1 files changed, 130 insertions, 0 deletions
diff --git a/apps/presque.json b/apps/presque.json
new file mode 100644
index 0000000..3287cd0
--- /dev/null
+++ b/apps/presque.json
@@ -0,0 +1,130 @@
+{
+   "format" : [
+      "json"
+   ],
+   "version" : "0.1",
+   "methods" : {
+      "fetch_job" : {
+         "required" : [
+            "queue_name"
+         ],
+         "expected" : [
+            "200"
+         ],
+         "path" : "/q/:queue_name",
+         "method" : "GET"
+      },
+      "queue_size" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/status/:queue_name",
+         "method" : "GET"
+      },
+      "reset_queue" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/q/:queue_name",
+         "method" : "DELETE"
+      },
+      "worker_stats" : {
+         "params" : [
+            "worker_id"
+         ],
+         "path" : "/w/",
+         "method" : "GET"
+      },
+      "unregister_worker" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/w/:queue_name",
+         "method" : "DELETE"
+      },
+      "create_job" : {
+         "params" : [
+            "delayed",
+            "uniq"
+         ],
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/q/:queue_name",
+         "method" : "POST"
+      },
+      "workers_stats" : {
+         "path" : "/w/",
+         "method" : "GET"
+      },
+      "failed_job" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/q/:queue_name",
+         "method" : "PUT"
+      },
+      "register_worker" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/w/:queue_name",
+         "method" : "POST"
+      },
+      "queue_stats" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/w/",
+         "method" : "GET"
+      },
+      "change_queue_status" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/control/:queue_name",
+         "method" : "POST"
+      },
+      "fetch_jobs" : {
+         "params" : [
+            "batch_size"
+         ],
+         "required" : [
+            "queue_name"
+         ],
+         "expected" : [
+            "200"
+         ],
+         "path" : "/q/:queue_name",
+         "method" : "GET"
+      },
+      "queue_info" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/j/:queue_name",
+         "method" : "GET"
+      },
+      "create_jobs" : {
+         "params" : [
+            "delayed"
+         ],
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/q/:queue_name",
+         "method" : "POST"
+      },
+      "queue_status" : {
+         "required" : [
+            "queue_name"
+         ],
+         "path" : "/control/:queue_name",
+         "method" : "GET"
+      }
+   },
+   "name" : "Presque",
+   "author" : [
+      "franck cuny <franck@lumberjaph.net>"
+   ]
+}