uprm-inso4101-2024-2025-s1 / semester-project-campus-resource-and-event-management

semester-project-campus-resource-and-event-management created by GitHub Classroom
9 stars 0 forks source link

[Lecture Topic Task] Back-End API Design - Create and Test RESTful Endpoints #370

Open LuisJCruz opened 2 days ago

LuisJCruz commented 2 days ago

Objective: Design, implement, and test RESTful API endpoints for managing events and user-related data in the application.

Description: This task focuses on building the back-end APIs to handle event data. It includes connecting to a SQLite database, creating tables, and implementing CRUD operations for events and user data. Proper testing ensures the endpoints work as expected and provide meaningful error handling.

Implementation Plan:

  1. Define API endpoints for CRUD operations (e.g., /api/events, /api/users).
  2. Implement database schema to store event and user information.
  3. Use curl to test API functionality and debug issues (e.g., column mismatches, missing data).
  4. Ensure error handling for cases like duplicate data or malformed requests.

Subtasks:

  1. Connect the application to a SQLite database.
  2. Design and implement the /api/events endpoint.
  3. Write sample data to test API functionality.
  4. Debug common issues (e.g., database schema errors, missing columns).
LuisJCruz commented 1 day ago

@AlexandraFuentes