Author: Cohort10
Version: 1.0.0
Date: April 04, 2023
- Install Node.js LTS runtime
- Run
npm i
to install all dependencies - Run
npm start
to initialize local server - Interface database at localhost:8000
Currently only the GET method is supported using the http protocol.
Request endpoints must begin with http://localhost:8000/api/
Example: http://localhost:8000/api/salary/Georgi/Facello
METHOD | ENDPOINT | DESCRIPTION |
---|---|---|
GET | / | List first 1000 employees |
GET | /:emp_no | Search employees by "employee id" |
GET | /firstname/:first_name | Search employees by "first name" |
GET | /department/:dept_name | Search first 1000 employees by "department name" |
GET | /salary/:emp_no | Search salaries by "employee id" |
GET | /salary/:first_name/:last_name | Search salaries by "first name" and "last name" |
- 1.0.0: Initial release.
- None.