uprm-inso4101-2024-2025-s1 / semester-project-mercado-colegial-online

semester-project-mercado-colegial-online created by GitHub Classroom
8 stars 1 forks source link

Develop and Implement Controller for Item Schema #59

Closed JuanIranzo closed 3 days ago

JuanIranzo commented 1 week ago

Objective:
Develop a controller for the Item schema that will handle all CRUD operations (Create, Read, Update, Delete) for managing products within the application.

Requirements:

Completion Criteria:

Time Constraint:
Target completion by Thursday, September 12.

Scoring:
Difficulty: 5 Urgency: 5

AlvinBadillo commented 5 days ago

I have completed the following parts of the task:

Create Item: Implemented the createItem method with validation to ensure proper data input, and error handling to catch and log any issues.

Get All Items: Developed the getAllItems method, which retrieves and returns a list of all items from the database, with error handling for potential issues.

Get Item by ID: Created the getItemById method, which fetches a specific item based on its ID. It handles errors for invalid IDs or if the item is not found.

Each method ensures validation and error management, aligning with the task's requirements.

JoshDG03 commented 4 days ago

I completed the following parts of the task

Update an Item by ID: implemented the updateItemById method which also has validation and error handling like the createItem method.

Delete Item by ID: implemented the deleteItemById method which searched for an Item and handles situations in which the item is not found, if it is deleted succesfully or the item was not able to be deleted.

The methods ensure validation and error handling as required by the task.