Skip to content

andy277/course_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API for courses on Youtube

Learning to make API for MKSOL

How to use this API?

Use each endpoint below to make requests to API.

HTTP:

Local Host: http://127.0.0.1:5000

Types of requests

GET request:

/api/courses

Use this endpoint to retrieve data for all courses in database.

Example using Postman:

Get all courses example


GET request:

/api/courses/<course_id>

Use this endpoint to retrieve data for course with specified ID.

Example using Postman:

Get course by ID example


POST request:

/api/courses/create

Send JSON data to this endpoint to create a new course.

Format data as below:

{
  "courseUrl": str,
    "description": str,
    "title": str
}

Example using Postman:

Create new course example


DELETE request:

/api/courses/<course_id>

Provide an ID to this endpoint to delete a specific course.

Example using Postman:

Delete course example


PUT request:

/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
}

Example using Postman:

Update course example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors