Skip to content

This pull request introduces a few improvements and fixes related to API routing, endpoint metadata, and test data. The most significant changes are adjustments to the way the products API router is imported and included, an update to the root endpoint's metadata, and the addition of a new CSV test file.#19

Merged
goldlabelapps merged 2 commits intomasterfrom
staging
Mar 23, 2026

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

API Routing and Import Fixes:

  • Changed the import of the products router in app/api/routes.py to use from app.api.products.products import router as products_router, ensuring the correct module is referenced.
  • Added an explicit import for the router in app/api/products/__init__.py to facilitate cleaner and more predictable imports.

Endpoint Metadata and Versioning:

  • Updated the endpoint metadata in the root API response to use "name" instead of "docs" for consistency in the endpoints list.
  • Bumped the application version from 1.0.7 to 1.0.8 in app/__init__.py.

Testing Improvements:

  • Added a new sample CSV file (tests/csv/small.csv) containing product data for use in tests or development.

Update package version from 1.0.7 to 1.0.8 in app/__init__.py. Add tests/csv/small.csv containing a header and several sample product rows (params, item, descriptions, pricing, EANs) for CSV-related tests.
Refactor products module into a package (app/api/products/products.py) and add app/api/products/__init__.py to re-export the router. Update app/api/routes.py to import the router from the new location. Also fix a typo in app/api/root.py: use the consistent "name" key for the docs endpoint in the root endpoints list.
@goldlabelapps goldlabelapps self-assigned this Mar 23, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Python Mar 23, 2026
@goldlabelapps goldlabelapps merged commit 72acef3 into master Mar 23, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Python Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant