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

Add products and categories controllers #3

Merged

Conversation

acerbisgianluca
Copy link
Owner

@acerbisgianluca acerbisgianluca commented Apr 3, 2024

Closes #1. Implements part of #2.

Add controllers, services, schemas and documentation related to Products and Categories.

Products

This PR will add a new endpoint to the API:

  • /api/products that returns a list of available products (stock quantity > 0). It acceps 2 optional query parameters (limit and offset).

Categories

This PR will add a new endpoint to the API:

  • /api/categories that returns a list of categories with the number of products (available and not available) assigned to each one.

@acerbisgianluca acerbisgianluca added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 3, 2024
@acerbisgianluca acerbisgianluca added this to the v1.0.0 milestone Apr 3, 2024
@acerbisgianluca acerbisgianluca self-assigned this Apr 3, 2024
@acerbisgianluca acerbisgianluca linked an issue Apr 3, 2024 that may be closed by this pull request
@acerbisgianluca acerbisgianluca merged commit 4234f5e into develop Apr 3, 2024
@acerbisgianluca acerbisgianluca linked an issue Apr 4, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Challenge 2 Implement Challenge 1
1 participant