@RequestMapping(value = "/quote/{id}", method = RequestMethod.POST) public Quote peakQuote(@PathVariable("id") int quoteId) { return quoteDBService.get(quoteId); }
@RequestMapping(value = "/quote", method = RequestMethod.GET) public Quote findByDate(@RequestParam("date") Date quotePublishDate) { return quoteDBService.find(quotePublishDate); }
@RequestMapping(value = "/quote/{id}", method = RequestMethod.DELETE) public Message deleteQuote(@PathVariable("id") int quoteId) { return quoteDBService.delete(quoteId); }
@RequestMapping(value = "/quote/{id}", method = RequestMethod.PUT) public Quote updateQuote( @PathVariable("id") int orderId, @RequestBody @Valid Quote quote, BindingResult result) { quoteDBService.update(quote, result); return quote; }
@RequestMapping(value = "/quote", method = RequestMethod.POST) public Message createQuote(@RequestBody @Valid Quote quote, BindingResult result) { return quoteDBService.create(quote, result); }
@RequestMapping(value = "/quotes", method = RequestMethod.GET) public List<Quote> listQuotes() { logger.debug("list Quotes"); return quoteDBService.listAll(); }