Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta API - get_return_reasons #61

Open
2 tasks
vishi24 opened this issue Mar 13, 2024 · 0 comments
Open
2 tasks

Meta API - get_return_reasons #61

vishi24 opened this issue Mar 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request strapi-plugins plugins for strapi

Comments

@vishi24
Copy link
Collaborator

vishi24 commented Mar 13, 2024

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_return_reasons. In this BAP fetches the list of return reasons from BPP. In Strapi plugin we need to implement the get_return_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 get reason API.

Goals

  • Implement fetch return reason API in Strapi

Expected Outcome

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

Acceptance Criteria

  • Correct result is provided to BAP when a request for return reasins is made to Strapi BPP.

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

@vishi24 vishi24 added enhancement New feature or request strapi-plugins plugins for strapi labels Mar 13, 2024
@vishi24 vishi24 assigned shreyvishal and em-abee and unassigned shreyvishal Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request strapi-plugins plugins for strapi
Projects
None yet
Development

No branches or pull requests

3 participants