Programming exercise:
If you are not familiar with plunker https://plnkr.co/,
spend some time to get familiar and review some examples.
Use any framework that you familiar with, plain old Javascript is ok.
Use a simple file reading to simulate the ReST call, no need to create any ReST service.
Try to create modulized code as much as possible.
You can reference any example, or search any resources, but make sure you can explain your code. If you have question please call Kae at 510-470-1818
1 Create a simple app.
2 The app should load up a HTML page with three buttons – GetEmployee, GetSalary, GetEmployeeAndSalary.
3 When GetEmployee button is clicked, it should call a backend ReST API(for ex: GET HTTP Method on resource name as employee)
by passing a query parameter id and value is employee id - It returns the response in JSON and display the Employee FirstName, LastName and Employee ID in the UI with a HTML table
4 When GetSalary button is clicked, it should call a backend ReST API(for ex: GET HTTP Method on resource name as salary)
by passing a query parameter id and value is employee id
- It returns the response in XML and display the Employee ID, and Salary Amount in the UI with a HTML table.
5 When GetEmployeeAndSalary is clicked,
it should call the above ReST APIs as in 3 and 4 concurrently and display a single merged result in a HTML table with EmployeeID, Full name and Salary.