This project is a simple Student and Course Management System implemented using ASP.NET Core Minimal APIs. It provides endpoints to manage students and courses, as well as to associate students with courses.
- CRUD operations for students and courses
- Adding students to courses and removing students from courses
- ASP.NET Core 8
- Entity Framework Core
- C#
- JSON
To run the project locally, follow these steps:
- Clone the repository to your local machine.
- Open the project in your preferred IDE (e.g., Visual Studio, Visual Studio Code).
- Build the project to restore dependencies with
dotnet restore
. - Configure the database connection string in the
appsettings.json
file. - Apply migrations to create the database schema.
- Run the application with
dotnet run
.
- Students
GET /students
: Retrieve all students.GET /students/{id}
: Retrieve a specific student by ID.POST /students
: Create a new student.PUT /students/{id}
: Update an existing student.DELETE /students/{id}
: Delete a student.
- Courses
GET /courses
: Retrieve all courses.GET /courses/{id}
: Retrieve a specific course by ID.POST /courses
: Create a new course.PUT /courses/{id}
: Update an existing course.DELETE /courses/{id}
: Delete a course.
- Course-Student Relationships
POST /courses/{course_id}/students/{student_id}
: Add a student to a course.DELETE /courses/{course_id}/students/{student_id}
: Remove a student from a course.
Contributions to this project are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.