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]: Add CRUD operations for products under an organization #659

Merged
merged 12 commits into from
Aug 27, 2024

Conversation

Am0du
Copy link
Contributor

@Am0du Am0du commented Aug 27, 2024

Changes:

  • Added methods in the ProductController for creating, deleting, and editing products.
  • Implemented authorization checks to ensure only admins can perform these operations.
  • Added exception handling for unauthorized access and product not found scenarios.
  • Updated the Swagger documentation with operation summaries for each endpoint.

How to Test:

  • Use Postman or similar tools to send HTTP requests to the implemented endpoints.
  • Verify that only users with the admin role can create, delete, or edit products.
  • Check that the proper error messages and status codes are returned for unauthorized actions or missing products.

Related Issues:
658

@Am0du Am0du requested a review from lurldgbodex August 27, 2024 20:33
@lurldgbodex lurldgbodex merged commit 7589468 into dev Aug 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants