1
RESTful POST yönteminde parametrelere nasıl erişilir
POST yöntemim şuna benzer: @POST @Consumes({"application/json"}) @Path("create/") public void create(String param1, String param2){ System.out.println("param1 = " + param1); System.out.println("param2 = " + param2); } Netbeans'te bir Jersey İstemcisi oluşturduğumda, post yöntemini çağıran yöntem şuna benzer: public void create(Object requestEntity){ webResource.path("create").type(MediaType.APPLICATION_JSON).post(requestEntity); } Bu testi çalıştırırken: @Test public void hello(){ String json …
123
java
web-services
rest
jersey
jax-rs