beckn / beckn-qr-code-generator

Beckn QR is a product that generates interoperable QR codes similar to UPI QR codes that allow a consumer on any beckn-enabled application to connect to and transact with any provider that has their catalog exposed as a beckn-endpoint
MIT License
4 stars 2 forks source link

Implement Beckn Search and Catalog Management APIs #5

Open roshangeorge97 opened 1 year ago

roshangeorge97 commented 1 year ago

Implement Beckn Search and Catalog Management APIs

Description

Background: As part of enhancing our Beckn protocol implementation, we need to focus on fetching catalogs using the Beckn search mechanism. This will involve encoding a selected provider as a search request and then saving the resulting JSON data. Additionally, we need to implement functionalities to generate QR codes based on the saved data.

Objectives:

API Specifications

  1. generateSearchRequest:

    • Input: provider.id (fetched from the last on_search response)
    • Output: Search request body where message.intent.provider.id is equal to the selected provider ID.
  2. saveRequest:

    • Input: Output of generateSearchRequest
    • Output: URL to the saved JSON file as a Beckn protocol URL
  3. generateQR:

    • Input: Output of saveRequest
    • Output: QR code image generated based on the provided data

Additional Requirements

Use Cases

Note

This issue should track the development and implementation of the specified APIs, including their documentation and unit tests. Once completed, the new functionality will enhance our Beckn protocol implementation by providing efficient search, catalog management, and sharing capabilities.