Education

The Education endpoint allows you to manage education records, providing options to create, update, delete, or retrieve them. The education records are structured in a schema with fields like institution name, type, major, and start/end dates.

Summary Table

MethodEndpointRequires header apikeyRequires :id
GET/api/educationNoNo
POST/api/educationYesNo
PATCH/api/education/:idYesYes
DELETE/api/education/:idYesYes

Schema

The education schema includes the following fields:

  • institution (String, Required): Name of the educational institution.
  • url (String, Required): The URL of the institution's website.
  • type (String, Required): The type of degree or diploma, e.g., "Bachelor of Science."
  • major (String, Required): The major field of study.
  • area (String, Optional): Additional description of the focus or specialization.
  • startDate (String, Optional): The starting date of the education period.
  • endDate (String, Optional): The ending date of the education period.

Usage

Getting All Education Records

Endpoint: /api/education
Method: GET
Description: Retrieves a list of all education records.

Creating a New Education Record

Endpoint: /api/education
Method: POST
Description: Adds a new education record. Requires the apikey header.
Headers:

  • apikey: Your API key

Request Body Example:

{
  "institution": "Simon Fraser University",
  "url": "https://www.sfu.ca/siat.html",
  "type": "Bachelors of Science",
  "major": "Interactive Arts and Technology",
  "area": "Interactive Systems",
  "startDate": "2021-08-31",
  "endDate": "Ongoing"
}

Updating an Education Record

Endpoint: /api/education/:id
Method: PATCH
Description: Updates an existing education record by its ID. Requires the apikey header.
Headers:

  • apikey: Your API key

Example usage

GET https://kylezhao101-api.vercel.app/api/education/6636d2810248ff3a38dff866

Request Body Example:

{
  "institution": "Some other University",
}

Deleting an Education Record

Endpoint: /api/education/:id
Method: DELETE
Description: Deletes an existing education record by its ID. Requires the apikey header.
Headers:

  • apikey: Your API key