wmurch / assignments

0 stars 0 forks source link

week 06 - day 04 - Who works here? #26

Open mdewey opened 5 years ago

mdewey commented 5 years ago

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

Explorer Mode

Adventure Mode

Epic Mode

Additional Resources

TIPS:

How to use the API

API Documentations: https://sdg-staff-directory-app.herokuapp.com/swagger/index.html

https://sdg-staff-directory-app.herokuapp.com/api/fakebook/employees

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

https://sdg-staff-directory-app.herokuapp.com/api/Boogle/employees

for your project you will be using the same company for every request

https://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 for fakebook.

https://sdg-staff-directory-app.herokuapp.com/api/fakebook/employees/

with my data in this JSON format:

  "firstName": "string",
  "lastName": "string",
  "birthday": "2019-06-06T16:48:57.256Z",
  "hiredDate": "2019-06-06T16:48:57.256Z",
  "isFullTime": true,
  "profileImage": "string",
  "jobTitle": "string",
  "jobDescription": "string",
  "phoneNumber": "string",
  "address": "string",
  "city": "string",
  "zip": "string",
  "state": "string",
  "salary": 0,
  "gender": "string",
  "email": "string",
  "emergencyContactPerson": "string",
  "emergencyContactPhone": "string",
  "emergencyContactAddress": "string",
  "ptoHours": 0,
}

Preview.