You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Endpoint Creation:
Create a new API endpoint to fetch products belonging to a specific vendor.
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.
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.
The text was updated successfully, but these errors were encountered:
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
Endpoint Creation:
Authentication & Authorization:
Database Query:
Acceptance Criteria
Additional Notes
The text was updated successfully, but these errors were encountered: