Eric Taylor has seven years of professional work experience. From 2005 to 2008, they worked as Office Manager/Personal Assistant at Marie Music Group. From 2008 to 2011, they were Tour Manager at Atlantic Records. From 2011 to 2013, they were Customer Support Lead at Hulu. From 2013 to 2015, they were Senior Manager of Customer Service at Tradesy. During the same time period, they were also Community Manager at plug.dj. From 2015 to present, they have held the roles of Product Manager and Director of Operations at StackCommerce.
package com.example.demo.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.demo.model.Employee;
import com.example.demo.service.EmployeeService;
@RestController
@RequestMapping("/employee")
public class EmployeeController {
@Autowired
private EmployeeService employeeService;
@PostMapping
public Employee saveEmployee(@RequestBody Employee employee) {
return employeeService.saveEmployee(employee);
}
@GetMapping("/{id}")
public Employee getEmployee(@PathVariable("id") int id) {
return employeeService.getEmployee(id);
}
@GetMapping
public List<Employee> getEmployees(){
return employeeService.getEmployees();
}
}
Sign up to view 0 direct reports
Get started