Qrdini-API

Qrdini API

QR Code Generation API.

API BASE URL : https://qrc-gen-api.onrender.com/

Table of Contents

Introduction

Qrdini QR Code Generation API is a versatile solution tailored for the swift and effortless creation of QR codes.

This API features a user-centric endpoint through which consumers can effortlessly produce QR codes. Users provide their desired message via request body, and the API generates a QR code image, securely storing it on a cloud service provider.

Subsequently, it delivers a URL enabling users to access and disseminate the generated QR code image.

Features

  1. Message Input: Users can effortlessly specify the message they wish to embed in the QR code using query parameters.

  2. QR Code Generation : The API dynamically crafts QR code images based on the user-provided messages.

  3. Cloud Storage : All generated QR code images are securely preserved on a reliable cloud service provider, ensuring data integrity and accessibility.

  4. URL Provision : The API returns a URL or location, simplifying user access to and distribution of the created QR code images.

Usage

How to use API, Including Authentication(if any), How to call the endpoints and also examples

Authentication

NO AUTHENTICATION

Endpoints

Available endpoints in the API, including their input parameters and expected output.

Request Body

This contains usage examples for the API including examples and request body

  1. Endpoint: POST /generate
curl -X 'POST' \
  'https://qrc-gen-api.onrender.com/generate' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "data": "string"
}'

Request body:

{
  "data":"user message"
}

  1. Endpoint: DELETE /delete
curl -X 'DELETE' \
  'https://qrc-gen-api.onrender.com/delete' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "file_url": "https://cdn.uploadfly.cloud/fhRp8N/QRAPI-3115Codeimg.png"
}'

Request body:

{
  "file_url":"<image_url>"
}

Responses

The format of the responses returned by the API. Including example responses for each endpoint.

Response Format

The structure of a typical API response.

{
  "field1": "value1",
  "field2": "value2"
}

Example Response

Endpoint: POST /generate

{
  "success": true,
  "status": 201,
  "data": {
    "url": "https://cdn.uploadfly.cloud/fhRp8N/QRAPI-7080Codeimg.png",
    "path": "fhRp8N/QRAPI-7080Codeimg.png",
    "type": "text/plain",
    "size": "2.41 kB",
    "name": "QRAPI-7080Codeimg.png"
  }
}

Endpoint: DELETE /delete

{
  "success": true,
  "status": 200,
  "data": {
    "message": "File deleted successfully"
  }
}

Errors

Explain the possible error responses and their meanings. Include error codes and messages.

Error Format

When calling the delete url and you miss to add the file url then this error response shows

{
  "success": false,
  "status": 400,
  "error": "File URL is missing in request"
}

Example Error

When calling the delete endpoint and the file url provided is invalid this response shows

{
  "success": false,
  "status": 404,
  "error": "File not found"
}

Contributing

Coming Soon

License

Specify the license under which your API is distributed.

Loading...

Creator

Feel free to reach out if you have any questions or feedback about this project. You can also connect with me on social media for updates and discussions.