Page MenuHomeDevCentral

Delivery API endpoints

Authored By
dereckson
May 24 2017, 23:56
Size
1 KB
Referenced Files
None
Subscribers
None

Delivery API endpoints

/delivery
/delivery/register_consumer
{
"api-key": "<guid allowed to use this API>"
"routing-key": "nasqueron.*"
}
{
"key": "<key to use for this queue>"
}
/delivery/get_all
{
"key": "<key returned by register_consumer>"
}
{
"queue": "<key to use for this queue>"
"routing-key": "nasqueron.*"
"count": 4,
'messages": [
{},
{},
{},
{}
]
}
/delivery/get
{
"key": "<key returned by register_consumer>",
"format": "base64"
}
// returns directly the message
/delivery/ack
{
"key": "<key returned by register_consumer>",
"id": 100
}
OR
{
"key": "<key returned by register_consumer>",
ids: [
101,
102,
103,
104
]
}
/delivery/unregister_consumer
{
"key": "<key returned by register_consumer>",
"force": true
}
// `force` allows to specify if we want to drop the queue when there is still at least one message inside
Message
{
"id": 100,
"format": "as-is",
"content": "..."
}
{
"id": 100,
"format": "base64",
"content": "..."
}
Should we store the content as base64?
nginx
location /delivery {
proxy_pass http://localhost:38080/;
include proxy_params;
}
Should we provide a CSS file too?
location = /delivery/app.css {
try_files /app.css @404;
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
105338
Default Alt Text
Delivery API endpoints (1 KB)

Event Timeline