The low latency database powered by Cloudflare Worker and KV
Method: POST
Content-Type: application/json
URL (Secured with Token): https://<your-app>.workers.dev/?key=<post-key>
URL (Not Secured): https://<your-app>.workers.dev/
BODY: Json Data (Not Parsed)
{
"status": true,
"_id": "16125252787azq",
"query": "https://<your-app>.workers.dev/16125252787azq",
"data": {
"i_am": "writing a readme"
}
}
Send this 👇
"_id":"my-unique-id"
with Body
Method: GET
URL: https://<your-app>.workers.dev/<_id>
{
"status": true,
"_id": "16125252787azq",
"data": {
"i_am": "writing a readme"
}
}
Method: DELETE
URL (Secured with Token): https://<your-app>.workers.dev/<_id>?key=<delete-key>
URL (Not Secured): https://<your-app>.workers.dev/<_id>
{
"status": true,
"msg": "Deleted Successfully"
}
Namespace Name
section Type a Name & Click on Add
, a namespace will created.worker.js
, paste into Worker & Click on Save & DeploySettings
KV Namespace Bindings
section click on Add Binding
TUHIN
in Variable name & select your recently created Namespace for KV namespace.You can impliment token based authentication system for POST and DELETE requests
POSTKEY
to secure POST requests with a Token (Line No: 12)DELETEKEY
to secure DELETE requests with a Token (Line No: 13)Kanging will not make you a developer. So, don't be a kanger âš