@@ -0,0 +1,871 @@
+package rs.radinovic.spring_boot_demo.web;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.*;%0Aimport rs.radinovic.spring_boot_demo.domain.Item;%0Aimport rs.radinovic.spring_boot_demo.service.ItemService;%0A%0Aimport javax.validation.Valid;%0Aimport java.util.List;%0A%0A@RestController%0A@RequestMapping(%22/api/item%22)%0Apublic class ItemController %7B%0A%0A    private final ItemService itemService;%0A%0A    @Autowired%0A    public ItemController(ItemService itemService) %7B%0A        this.itemService = itemService;%0A    %7D%0A%0A    @RequestMapping(method = RequestMethod.POST)%0A    @ResponseBody long createItem(@RequestBody @Valid Item item) %7B%0A        return itemService.saveItem(item);%0A    %7D%0A%0A    @RequestMapping(method = RequestMethod.GET)%0A    @ResponseBody%0A    List%3CItem%3E findAllItems() %7B%0A        return itemService.findAllItems();%0A    %7D%0A%7D%0A

Add ItemController