- Generate an authorization basic token following the authorization guide
- Add some element in the queue using the put endpoint
- Get the queue elements with get endpoint
There are some configurations to be done in the worker:
TTL
- Time to the element in the queue livePASSWORD
- Global user password
A Worker KV labeled as QUEUE
.
Authorization is made through the basic authorization method, where the user
can be any username and the password
is the PASSSWORD
enviroment variable.
Endpoint: /queue/{queue name}
HTTP method: GET
Headers:
Authorization
: Basic authorization token
Response:
{
"index": "202110302133649351abaa14edfb4b72a54ca8ac305047ea",
"data": "Test"
}
Endpoint: /queue/{queue name}
HTTP method: PUT
Headers:
Authorization
: Basic authorization token
Body: Any data JSON encoded
Response:
{
"status": "ok"
}