package com.eyekabob;

import org.json.JSONException;
import org.json.JSONObject;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * © Copyright 2012 Brien Coffield
 * All rights reserved
 * <p/>
 * This file is subject to the terms and conditions defined in
 * file 'LICENSE.txt', which is part of this source code package.
 */
@Path("/main")
public class Main {
    @GET
    @Produces("application/json")
    public String helloWorld() throws JSONException {
        JSONObject response = new JSONObject();
        response.put("response", "Hello, world!");
        return response.toString();
    }
}

@@ -153,16 +153,47 @@
 roduces;
+%0Aimport javax.ws.rs.QueryParam;
 %0A%0A/**%0A *
@@ -496,16 +496,49 @@
 loWorld(
+@QueryParam(%22param%22) String param
 ) throws
@@ -649,17 +649,26 @@
 , world!
-%22
+ %22 + param
 );%0A     

Add query param to the hello world web service