Qujata

A lightweight, temporary data storage API

Current Records

[]

What is Qujata?

Qujata is a simple REST API for temporary data storage. It allows you to create, read, update, and delete small pieces of data (up to 2,000 characters). The data is stored briefly and will expire after certain time limits.

This is perfect for prototypes, demos, or any scenario where you need a quick, short-lived storage solution without a full-fledged database setup or user registration.

Key Features

  • Easy to Use: No authentication required, just simple HTTP requests.
  • Data Limits: Each record can store up to 2,000 characters.
  • Time-Based Expiration: Data expires after two conditions:
    • 60 minutes after creation – Hard limit.
    • 20 minutes of inactivity – If no CRUD operation happens within 20 minutes.
  • Remaining Time: Responses include an X-Ttl header, showing how many milliseconds remain until the record is deleted.

API Endpoints

POST /api/create

Create a new record.

Request:

POST /api/create HTTP/1.1 Host: qujata.com Content-Type: text/plain Hello, Qujata!

Response (201): Returns a JSON object with the newly created record's ID.

HTTP/1.1 201 Created X-Ttl: 360 Content-Type: application/json "id": "6bd2e5fa-9373-4e94-9fcd-0b74f2fdf672"

GET /api/read/[id]

Read a record by its ID.

Request:

GET /api/read/6bd2e5fa-9373-4e94-9fcd-0b74f2fdf672 HTTP/1.1 Host: qujata.com

Response (200):

HTTP/1.1 200 OK X-Ttl: 7100000 Content-Type: application/json "value": "Hello, Qujata!"

PUT /api/update/[id]

Update an existing record.

Request:

PUT /api/update/6bd2e5fa-9373-4e94-9fcd-0b74f2fdf672 HTTP/1.1 Host: qujata.com Content-Type: text/plain Updated content here!

Response (200):

HTTP/1.1 200 OK X-Ttl: 6900000 Content-Type: application/json "value": "Updated content here!"

DELETE /api/delete/[id]

Delete a record by its ID.

Request:

DELETE /api/delete/6bd2e5fa-9373-4e94-9fcd-0b74f2fdf672 HTTP/1.1 Host: qujata.com

Response (200):

HTTP/1.1 200 OK Content-Type: application/json "message": "Deleted"

Additional Notes

Data Expiration: Once data reaches either the inactivity limit (20 min without operations) or absolute limit (60 minutes since creation), it's automatically deleted. This ensures that Qujata's storage remains fresh and uncluttered.

Inspect Endpoint: For debugging or administrative purposes, GET /api/inspect returns all current records. Use this carefully and consider limiting access in production.

Use Cases:
  • Prototyping: Quickly store temporary data without setting up a full database.
  • Testing: Save test data during development or CI processes.
  • Education: Teach CRUD operations without complexity.

Ready to Try?

Use the endpoints above to create, read, update, and delete your data. Keep an eye on the X-Ttl header to know when your data will expire.