@Route(method=HttpMethod.GET, uri="/reverse")
    public Result reverse() {
        // Get the url of another action method (without parameters)
        String all = router.getReverseRouteFor(PhotoController.class, "all");
        // Get the url of another action method, with id = 1
        String get = router.getReverseRouteFor(PhotoController.class, "get", "id", 1);

        return ok(all + "\n" + get);
    }
@ Route ( method = HttpMethod . GET , uri = "/reverse" ) public Result reverse ( ) { String all = router . getReverseRouteFor ( PhotoController . class , "all" ) ; String get = router . getReverseRouteFor ( PhotoController . class , "get" , "id" , 1 ) ; return ok ( all + "\n" + get ) ; }
tag::reverse[]