cloudq2
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
src
test
.gitignore
Cakefile
package.json
readme.md
server.js

readme.md

Cloudq

API

GET / 
Content-Type: JSON
Content-Length: 0

Returns list of queues

[
{ name: 'meme', status: 'queued', count: 4}, #red
{ name: 'meme', status: 'working', count: 3}, # yellow/orange
{ name: 'meme', status: 'done', count: 5}, # green
{ name: 'meme', status: 'expired', count: 5}  # grey
]

POST /:queue Content-Type: application/json Content: {"queue":"meme", "body": "Foo Bar", "expire": "1d"}


GET /:queue Content-Type: application/json

Returns

{"queue":"meme", "body": "Foo Bar", "expire": "1d", "id": 1}


DELETE /:queue/:id Content-Type: application/json

{ success: true }


GET /:queue/:id

{"queue":"meme", "body": "Foo Bar", "expire": "1d", "id": 1, "status": "working"}