beckn / strapi-plugins

0 stars 1 forks source link

Meta API - get_cancellation_reasons #60

Open vishi24 opened 5 months ago

vishi24 commented 5 months ago

Description

In version 1.1.0 of beckn, a new set of APIs has been introduced that can be used by the BAPs to fetch the meta information. One of the API is get_cancellation_reasons. In this BAP fetches the list of cancellation reasons from BPP. In Strapi plugin we need to implement the get_cancellation_reasons.

  1. Create a suitable datamodel in Strapi , check if any existing data model can be used to provide the detail.
  2. Create an endpoint in webhook to handle the request.
  3. Implement the query logic to fetch the requested detail.
  4. Test the endpoint from Strapi and the generic client layer.
  5. Write unit test cases for the endpoint.

Goals

Expected Outcome

Strapi should be able to serve the get_cancellation_reasons API call from BAP.

Acceptance Criteria

Implementation Details

It should be part of the strapi pugin and must follow the specification details here - https://github.com/beckn/protocol-specifications/blob/master/api/meta/build/meta.yaml

Tech Skills Needed:

Strapi plugin development Node Js

Complexity

Medium

Category

Enhancement

Sub Category

Strapi plugin enhancement

shreyvishal commented 5 months ago

Didn't picked up as involved in Beckn AI