QR Code Generation API.
API BASE URL : https://qrc-gen-api.onrender.com/
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.
-
Message Input
: Users can effortlessly specify the message they wish to embed in the QR code using query parameters. -
QR Code Generation
: The API dynamically crafts QR code images based on the user-provided messages. -
Cloud Storage
: All generated QR code images are securely preserved on a reliable cloud service provider, ensuring data integrity and accessibility. -
URL Provision
: The API returns a URL or location, simplifying user access to and distribution of the created QR code images.
How to use API, Including Authentication(if any), How to call the endpoints and also examples
NO AUTHENTICATION
Available endpoints in the API, including their input parameters and expected output.
-
POST
/generate
: Generates Qrcode and returns a json containing url to the image -
DELETE
/delete
: Delete Qrcode, after passing the url o the image in the request body, it returns a response on the status
This contains usage examples for the API including examples and request body
- 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"
}'
{
"data":"user message"
}
- 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"
}'
{
"file_url":"<image_url>"
}
The format of the responses returned by the API. Including example responses for each endpoint.
The structure of a typical API response.
{
"field1": "value1",
"field2": "value2"
}
Endpoint: POST /generate
- Response:
{
"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
- Response:
{
"success": true,
"status": 200,
"data": {
"message": "File deleted successfully"
}
}
Explain the possible error responses and their meanings. Include error codes and messages.
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"
}
When calling the delete endpoint and the file url provided is invalid this response shows
{
"success": false,
"status": 404,
"error": "File not found"
}
Coming Soon
Specify the license under which your API is distributed.
Loading...
- Name: Jamin Onuegbu
- Email: jaminonuegbu@gmail.com
- GitHub: JaminCO
- LinkedIn: Jamin Onuegbu
- Twitter: @jaminonuegbu
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.