Skip to content

A local organization wants to create an application that allows them to manage their employees. You are tasked with creating a proof-of-concept API using placeholder data.

Notifications You must be signed in to change notification settings

AChar770/EmployeeDirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Directory

A local organization wants to create an application that allows them to manage their employees. You are tasked with creating a proof-of-concept API using placeholder data.

Requirements

Write and export an Express app in app.js that serves the following endpoints. Run npm test to make sure that you are passing all test cases!

  • GET / sends the string "Hello employees!".
  • GET /employees sends the array of employees.
  • GET /employees/:id sends the employee with the given id.
    • This should 404 with a message if there is no employee with that id.
  • GET /employees/random sends a random employee from the array.
    • Be very careful about where you write this middleware! A request is handled by the first handler with a matching route.

Submission

Submit the link to your public GitHub repository.

About

A local organization wants to create an application that allows them to manage their employees. You are tasked with creating a proof-of-concept API using placeholder data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published