In this assignment we implemented Handlebars to our HTML pages. This allows for dynamic rendering of HTML. All queries now render HTML instead of returning stringified JSON. All pages were updated to use Handlebars.
The following queries are available:
/employees?status
This returns a list of employees filtered by status, either "Full Time" or "Part Time". For example /employees?status=Full Time
returns a list of employees that have "Full Time" status
/employees?department
This returns a list of employees filtered by department. For example /employees?department=1
returns a list of employees that are in department 1.
/employees?manager
This returns a list of employees filtered by their manager number. For example /employees?manager=1
returns a list of employees who's manager's employee number is 1.
/employee/:num
This returns the result of searching for an employee by their employee number. For example /employee/2
will return employee number 2.
This page allows you to edit and update the employee's information.
Please note that these queries cannot be chained together.
My intention with uploading school assignments on GitHub is merely to build a portfolio of my work. Please do not plagiarize.