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

Feat: Vendor should be able to get own products #155

Closed
4 tasks done
wayneleon1 opened this issue Jul 19, 2024 · 0 comments · Fixed by #156
Closed
4 tasks done

Feat: Vendor should be able to get own products #155

wayneleon1 opened this issue Jul 19, 2024 · 0 comments · Fixed by #156
Assignees
Labels
backend Good for newcomers WIP Work In Progress

Comments

@wayneleon1
Copy link
Contributor

wayneleon1 commented Jul 19, 2024

Description

Implement functionality to allow vendors to retrieve their own products on the backend side of the application. This feature will enable vendors to view a list of their products, including all details of product.

Requirements

  1. Endpoint Creation:

    • Create a new API endpoint to fetch products belonging to a specific vendor.
  2. Authentication & Authorization:

    • Ensure that the vendor is authenticated before they can access their products.
    • Implement authorization to ensure that a vendor can only access their own products and not those of other vendors.
  3. Database Query:

    • Write a query to fetch products from the database that belong to the authenticated vendor.

Acceptance Criteria

  • An authenticated vendor can successfully retrieve a list of their own products via the new API endpoint.
  • The response includes all required product details in a structured JSON format.
  • Appropriate error handling is in place for various failure scenarios.
  • Unit tests are written to cover the new functionality.

Additional Notes

  • Ensure the code follows existing code standards and practices.
  • Provide documentation for the new API endpoint, including request and response examples.
  • Collaborate with the frontend team to ensure they have the necessary information to integrate this new functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Good for newcomers WIP Work In Progress
Projects
None yet
1 participant