From 0e6e55c668ba7473de2cc719460997681515f94f Mon Sep 17 00:00:00 2001 From: franck cuny Date: Wed, 14 Apr 2010 10:59:43 +0200 Subject: add more POD --- lib/presque.pm | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'lib/presque.pm') 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 gets an object out of the queue -=item - - POST /q/queuename +=item B insert an object in the queue -=item - - DELETE /q/queuename +=item B purge and delete the queue -=item - - GET /stats/[queuename] +=item B return some statues about the queue. If no queue is given, return basic statues about all the queues. +=item B + +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 Efranck@lumberjaph.netE -- cgit 1.4.1