Skip to content

Courses API#16

Merged
longobucco merged 1 commit intomasterfrom
Edoardo
Nov 27, 2025
Merged

Courses API#16
longobucco merged 1 commit intomasterfrom
Edoardo

Conversation

@E-Latini
Copy link
Copy Markdown
Contributor

This PR implements a complete REST API for courses and lessons management using FastAPI. The implementation includes four main endpoints: GET /api/courses to retrieve all available courses, GET /api/courses/{id} for specific course details, GET /api/courses/{id}/lessons to fetch course lessons, and GET /api/lessons/{id} for individual lesson details.

The architecture follows a clean layered pattern with API endpoints in courses_api.py, business logic in course_service.py, data access in course_repo.py, and Pydantic schemas in course_schemas.py. The implementation includes comprehensive error handling with 404 responses for missing resources and 400 for invalid inputs, along with full test coverage for all components. All responses are properly validated through Pydantic schemas and the scope is limited to read-only operations as specified.

@longobucco
Copy link
Copy Markdown
Collaborator

Need to integrate real tests on the routes

@longobucco longobucco merged commit 6e7200a into master Nov 27, 2025
1 of 6 checks passed
@longobucco longobucco deleted the Edoardo branch November 27, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants