Based on a PHP framework: Slim
$ composer install
$ cd ./public
$ php -S localhost:8888
$ docker-compose up -d
- Method:
listCourses
- Endpoint:
GET /api/courses
- Method:
getCourseDetails
- Endpoint:
GET /api/courses/{id}
- Method:
createCourse
- Endpoint:
POST /api/courses
- Method:
updateCourse
- Endpoint:
PUT /api/courses/{id}
- Method:
deleteCourse
- Endpoint:
DELETE /api/courses/{id}
- Method:
listStudentsInCourse
- Endpoint:
GET /api/courses/{id}/students
- Method:
enrollStudentInCourse
- Endpoint:
POST /api/courses/{id}/students
- Method:
listLessonsInCourse
- Endpoint:
GET /api/courses/{id}/lessons
- Method:
addLessonToCourse
- Endpoint:
POST /api/courses/{id}/lessons
- Method:
updateLessonInformation
- Endpoint:
PUT /api/courses/{idCourse}/lessons/{idLesson}
- Method:
deleteLessonFromCourse
- Endpoint:
DELETE /api/courses/{idCourse}/lessons/{idLesson}