Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F516610
Delivery API endpoints
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
May 24 2017, 23:56
2017-05-24 23:56:47 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
Delivery API endpoints
View Options
/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
Details
Attached
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)
Attached To
Mode
P255 Delivery API endpoints
Attached
Detach File
Event Timeline
Log In to Comment