Learning to make API for MKSOL
Use each endpoint below to make requests to API.
Local Host: http://127.0.0.1:5000
/api/courses
Use this endpoint to retrieve data for all courses in database.
/api/courses/<course_id>
Use this endpoint to retrieve data for course with specified ID.
/api/courses/create
Send JSON data to this endpoint to create a new course.
Format data as below:
{
"courseUrl": str,
"description": str,
"title": str
}
/api/courses/<course_id>
Provide an ID to this endpoint to delete a specific course.
/api/courses/<course_id>
Send course data to this endpoint and provide ID to update an existing course.
Format data as below:
{
"courseUrl": str,
"description": str,
"title": str
}




