summaryrefslogtreecommitdiff
path: root/lib/presque.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/presque.pm')
-rw-r--r--lib/presque.pm28
1 files changed, 16 insertions, 12 deletions
diff --git a/lib/presque.pm b/lib/presque.pm
index f64800a..a1b7cbd 100644
--- a/lib/presque.pm
+++ b/lib/presque.pm
@@ -66,31 +66,27 @@ The following HTTP routes are available:
=over 4
-=item
-
- GET /q/queuename
+=item B<GET /q/queuename>
gets an object out of the queue
-=item
-
- POST /q/queuename
+=item B<POST /q/queuename>
insert an object in the queue
-=item
-
- DELETE /q/queuename
+=item B<DELETE /q/queuename>
purge and delete the queue
-=item
-
- GET /stats/[queuename]
+=item B<GET /stats/[queuename]>
return some statues about the queue. If no queue is given, return basic statues about
all the queues.
+=item B<GET /j/queuename>
+
+return some basic information about a queue.
+
=back
=head2 INSERT A JOB
@@ -102,6 +98,14 @@ must be a valid JSON object.
=head2 FETCH A JOB
+Return a JSON object
+
+ curl http://localhost:5002/q/foo
+
+=head2 PURGE AND DELETE A QUEUE
+
+ curl -X DELETE http://localhost:5002/q/foo
+
=head1 AUTHOR
franck cuny E<lt>franck@lumberjaph.netE<gt>