/**
 * 
 */
package me.bayes.vertx.vest.endpoint;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;

import org.vertx.java.core.http.HttpServerRequest;
import org.vertx.java.core.http.HttpServerResponse;
import org.vertx.java.core.json.JsonObject;

/**
 * @author kevinbayes
 *
 */
@Path("/echo")
public class EchoEndpoint {
	
	@GET
	@Consumes({MediaType.APPLICATION_JSON})
	@Produces({MediaType.APPLICATION_JSON})
	public void ping(HttpServerRequest request, HttpServerResponse response, JsonObject body) {
		response.headers().set(HttpHeaders.CONTENT_ENCODING, "UTF-8");
		response.end(body.toString());
	}

}

@@ -731,12 +731,270 @@
 g());%0A%09%7D
+%0A%09%0A%09@GET%0A%09@Consumes(%7BMediaType.TEXT_PLAIN%7D)%0A%09@Produces(%7BMediaType.TEXT_PLAIN%7D)%0A%09public void pingText(HttpServerRequest request, HttpServerResponse response) %7B%0A%09%09response.headers().set(HttpHeaders.CONTENT_ENCODING, %22UTF-8%22);%0A%09%09response.end(%22Hello World!%22);%0A%09%7D
 %0A%0A%7D%0A

Add EchoEndpoint