Example usage for org.springframework.web.bind.annotation RequestMethod GET

List of usage examples for org.springframework.web.bind.annotation RequestMethod GET

Introduction

In this page you can find the example usage for org.springframework.web.bind.annotation RequestMethod GET.

Prototype

RequestMethod GET

To view the source code for org.springframework.web.bind.annotation RequestMethod GET.

Click Source Link

Usage

From source file:com.ecto.engine.controllers.ArticleController.java

@RequestMapping(value = "/article/{a}", method = RequestMethod.GET)
public String getArticle(@PathVariable Integer a, Model model) {
    Article article = articleService.findById(a);
    model.addAttribute("article", article);
    return "article";
}

From source file:de.asgarbayli.rashad.hbd.controllers.DefaultController.java

@RequestMapping(value = Navigation.ABOUT, method = RequestMethod.GET)
public String about(ModelMap map) {
    map.put("title", "About");
    return Navigation.ABOUT;
}

From source file:nl.mok.mastersofcode.spectatorclient.controllers.TeamController.java

@RequestMapping(method = RequestMethod.GET, value = "/{username}")
public ModelAndView showTeam(final HttpServletRequest request, @PathVariable String username) {
    ModelAndView mav = new ModelAndView();

    mav.addObject("page", new Object() {
        public String uri = "/spec/team";
        public String redirect = request.getRequestURL().toString();
    });/*from  w  w w  . jav a 2 s. c o  m*/

    mav.addObject("team", DataController.getTeamById(username).orElse(null));
    mav.addObject("currentCompetition", DataController.getCurrentCompetition());
    mav.addObject("currentRound", DataController.getCurrentRound());

    mav.setViewName("team.twig");

    return mav;
}

From source file:edu.umuc.cmsc495.trackit.controllers.LoginResetController.java

@RequestMapping(method = RequestMethod.GET)
public String loginReset(ModelMap map) {
    // Must return name of file (minus .jsp) under /views
    return "login-reset";
}

From source file:org.uom.fit.level2.datavis.controllers.chatController.ChatController.java

@RequestMapping(value = "/getall", method = RequestMethod.GET)
public JSONArray listUsers() {
    return chatServices.getAll();
}

From source file:cz.muni.fi.pa165.rest.controllers.MainController.java

@RequestMapping(value = "/", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public final Map<String, String> getResources() {

    Map<String, String> resourcesMap = new HashMap<>();
    resourcesMap.put("rooms_uri", "/room");
    return Collections.unmodifiableMap(resourcesMap);
}

From source file:edu.ijse.tcd.controller.GradeController.java

@RequestMapping(value = "grade", method = RequestMethod.GET)
public String loadGrade(ModelMap map) {
    Grade grade = new Grade();
    ArrayList<Grade> grades = gradeService.getGrades();

    map.addAttribute("gradeMap", grade);
    map.addAttribute("gradeList", grades);
    return "grade";
}

From source file:com.mtech.easyexchange.mvc.user.LoginController.java

@RequestMapping(value = "/login", method = RequestMethod.GET)
public String index(ModelMap map) {

    return "user/login";

}

From source file:com.corp.controller.Controller.java

@RequestMapping(value = "/find/{id}", method = RequestMethod.GET)
public List<StudentModel> greeting(@PathVariable("id") String id) {

    return su.getUsers(id);
}

From source file:com.belajar_filter.controller.HalloController.java

@RequestMapping(method = RequestMethod.GET, value = "/says")
public Map<String, Object> sayHallo(@RequestParam("name") String name) {
    log.info("info name : " + name);
    Map<String, Object> dto = new HashMap<>();
    dto.put("message", "Hallo " + name);
    return dto;/*from  w  ww  .  jav  a2  s.c  o  m*/
}