Nightherald / aa-workshop-data-models

MIT License
0 stars 1 forks source link

[SOLVED] Implement Product Retrieval by ID #3

Open Nightherald opened 9 months ago

Nightherald commented 9 months ago

Summary

Implement a function that allows for the retrieval of a specific product based on its ID from the products table.

Tasks

  1. Create the Product model to include all necessary fields from the products table.
  2. Create a service function in products_service.py to retrieve a product by its ID.
  3. Integrate the product retrieval functionality into main.py such that when it's run, it fetches and displays the details of a product based on a given ID.
Nightherald commented 9 months ago

solved here: https://github.com/Nightherald/aa-workshop-data-models/blob/master/app/demos/product.py

Nightherald commented 9 months ago

The task has an [UNSOLVED] part 2 at https://github.com/Nightherald/aa-workshop-data-models/issues/6