/**
 * Created by Kepa on 29/05/2016.
 */
package com.heroku.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.HandlerMapping;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;


@Controller
@RequestMapping("/Sudotris")
public class SudotrisController {


    @Autowired
    public SudotrisController(RecordRepository repository) {

    }

    @RequestMapping("/foo/{id}")
    public int foo(@PathVariable("id") int id) {
        return id;
    }
}

test rest