diff options
Diffstat (limited to 'lib/presque/RestQueueBatchHandler.pm')
-rw-r--r-- | lib/presque/RestQueueBatchHandler.pm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/presque/RestQueueBatchHandler.pm b/lib/presque/RestQueueBatchHandler.pm index adbfe06..30008b8 100644 --- a/lib/presque/RestQueueBatchHandler.pm +++ b/lib/presque/RestQueueBatchHandler.pm @@ -148,3 +148,25 @@ sub _create_job { } 1; +__END__ + +=head1 NAME + +presque::RestQueueBatchHandler + +=head1 SYNOPSIS + + # insert a list of jobs + curl -H 'Content-Type: application/json' -X POST "http://localhost:5000/qb/foo" -d '{jobs:["key":"value"], ["key2":"value2"]}' + + # fetch some jobs + curl http://localhost:5000/qb/foo + +=head1 DESCRIPTION + +=head1 METHODS + +=head2 get + +=head2 post + |