Closed mdewey closed 5 years ago
I would like to see the employee page be built.
https://github.com/LivCunningham/twerktwerktwerk.git
I am closing this for the moment but I aim to add styling before progress reports tomorrow.
The form is functional. The all employees page (with your amazing help) links to the singles page, that lists added employee details and a "Fire Me" button that deletes (still buggy) but will adjust.
Your homework was marked: Meets Expectations
“Well done!” — via Gavin Stark
Who works here?
Over the last 6 weeks, you have learned many concepts about front-end development. To demonstrate how far you have come, I want you to build an Employee Directory. For
Explorer Mode
, this will be a site with 3 pages; view all employees, add an employee, and view an employee.Adventure Mode
adds delete and updating an employee.Objectives
Requirements
gamma
stack projectAdditional Resources
for how to use the API.Explorer Mode
Get all employees endpoint
, https://sdg-staff-directory-app.herokuapp.com/api/\${companyName}/employees.employee page
for that employee. The URL should look like:/employee/${employeeId}
Adventure Mode
delete
a userupdate
a userEpic Mode
Additional Resources
TIPS:
How to use the API
API Documentations: https://sdg-staff-directory-app.herokuapp.com/swagger/index.html
fakebook
. That means that I want to make an API call to get all of my employees, I will do a fetch to the URL.That will return me a list of employees that are apart of the company
If I want to get a different company's (Boogle) employees. I would do
for your project you will be using the same company for every request
fakebook
I would use the endpointhttps://sdg-staff-directory-app.herokuapp.com/api/fakebook/employees/3
A GET request to the above URL will get the employee with the id of
3
, and that works forfakebook
.fakebook
, I will send a POST request this endpointwith my data in this JSON format:
Preview.