@@ -0,0 +1,1659 @@
+package net.davidvoid.thor.lightning.webservice;%0A%0Aimport java.util.List;%0A%0Aimport net.davidvoid.thor.lightning.data.access.ItemStore.SORT_OPTION;%0Aimport net.davidvoid.thor.lightning.entity.Item;%0Aimport net.davidvoid.thor.lightning.service.ItemService;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0A@RequestMapping(%22/groups/%7Bgroup_id%7D/feeds/%7Bfeed_id%7D/items%22)%0Apublic class ItemRestService %7B%0A    @Autowired%0A    ItemService service = null;%0A    %0A    @RequestMapping(method = RequestMethod.GET)%0A    public List%3CItem%3E get(@PathVariable Long group_id, @PathVariable Long feed_id, %0A            @RequestParam(required = false, defaultValue = %22false%22) boolean onlyUnread, %0A            @RequestParam(required = false, defaultValue = %22BY_UPDATE_DATE_DSC%22) SORT_OPTION sortBy,%0A            @RequestParam(required = false, defaultValue = %220%22) int start, %0A            @RequestParam(required = false, defaultValue = %2210%22) int count) %7B%0A        return service.get(group_id, feed_id, onlyUnread, sortBy, start, count);%0A    %7D%0A    %0A    @RequestMapping(value = %22/count%22, method = RequestMethod.GET)%0A    public long count(@PathVariable Long group_id, @PathVariable Long feed_id, %0A            @RequestParam(required = false, defaultValue = %22false%22) boolean onlyUnread) %7B%0A        return service.count(group_id, feed_id, onlyUnread);%0A    %7D%0A%0A%7D%0A

add item rest service