Tom Kelly has been working in the professional world since 2007 when they founded Charity Auctions Today. This organization helps build and deliver online and mobile auctions to bidders. In 2015, they co-founded CompCorePro, an online platform that helps companies manage their work related injuries more efficiently. Tom and their team of clinicians and medical directors provide doctor and adjuster oversight to control the claim from start to finish.
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.entity.Product;
import com.example.demo.service.ProductService;
@RestController
@RequestMapping("/api")
public class ProductController {
@Autowired
private ProductService productService;
@GetMapping("/products")
public List<Product> getProducts(){
return productService.getProducts();
}
@PostMapping("/products")
public Product addProduct(@RequestBody Product product) {
return productService.addProduct(product);
}
@GetMapping("/products/{id}")
public Product getProduct(@PathVariable int id) {
return productService.getProduct(id);
}
}
Sign up to view 3 direct reports
Get started
This person is not in any teams