How to pass this param in URL

Viewed 19

How to pass this param in URL http://localhost:8080/serviceweb/agent

    @Path("/agent/{code}")
    @Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
    @Consumes(MediaType.APPLICATION_JSON)
    public Object Response(
            @PathParam("code") String code,
            @QueryParam("user") String user,
            @QueryParam("password") String password) { ``` 
       
0 Answers
Related