class FibonacciRestEndpoint implements FibonacciEndpoint {

  @Override
  @RequestMapping(value = "/term", method = RequestMethod.GET)
  @ResponseBody
  public long term(int n) {
    return fibonacciService.term(n);
  }

  @Autowired  FibonacciRestEndpoint(FibonacciService fibonacciService);

}