Saturday, December 10, 2016

RestFul Ders(2)

















----------------------------------------- hi -----------------------------------------

@GET
    @Path("/hi")
    public String hi(){
        return "Hello";
    }






http://localhost:8080/RestFulLesson2/resources/hello/hi

Domain Name        : localhost
Port                         : 8080
Application Name  : RestFulLesson2
ApplicationPath     : resources
Path (Class)            : hello
Path (Method)        : hi
Result                      : Hello


----------------------------------------- hi2 -----------------------------------------

@GET
    @Path("/hi2/{name}")
    public String hi2(@PathParam("name") String name){
        return "Hello "+name;
    }





http://localhost:8080/RestFulLesson2/resources/hello/hi2/Abdulkadir

Domain Name        : localhost
Port                         : 8080
Application Name  : RestFulLesson2
ApplicationPath     : resources
Path (Class)            : hello
Path (Method)        : hi2
PathParam             : Abdulkadir
Result                      : Hello Abdulkadir

----------------------------------------- h3 -----------------------------------------

@GET
    @Path("/hi3/{name}/{surname}")
    public String hi3(@PathParam("name") String name,@PathParam("surname") String surname){
        return "Hello "+name+" "+surname;
    }





http://localhost:8080/RestFulLesson2/resources/hello/hi3/Abdulkadir/Selcukoglu

Domain Name        : localhost
Port                         : 8080
Application Name  : RestFulLesson2
ApplicationPath     : resources
Path (Class)            : hello
Path (Method)        : hi3
PathParam             : Abdulkadir
PathParam             : Selcukoglu
Result                      : Hello Abdulkadir Selcukoglu

----------------------------------------- hi4 -----------------------------------------

@GET
    @Path("/hi4/{name}-{surname}")
    public String hi4(@PathParam("name") String name,@PathParam("surname") String surname){
        return "Hello "+name+" "+surname;
    }






http://localhost:8080/RestFulLesson2/resources/hello/hi4/Abdulkadir-Selcukoglu

Domain Name        : localhost
Port                         : 8080
Application Name  : RestFulLesson2
ApplicationPath     : resources
Path (Class)            : hello
Path (Method)        : hi4
PathParam             : Abdulkadir
PathParam             : Selcukoglu
Result                      : Hello Abdulkadir Selcukoglu















1 comment:

  1. Bet365 Casino App & Sportsbook Review - JMH Hub
    Bet365 is one of the leading online gambling platforms with an amazing user 안양 출장마사지 experience that 부천 출장안마 is unmatched 서산 출장안마 in the 수원 출장샵 market. As a result, we believe they have made the 태백 출장샵 best

    ReplyDelete