package application.rest.v1;

import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import java.util.ArrayList;


@Path("hello")
public class Example {

@GET
@Produces(MediaType.APPLICATION_JSON)

public Response hello()
{
	return Response.ok("hello worlds").build();
}


}

package application.rest.v1;

import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import java.util.ArrayList;


@Path("hello")
public class Example {

@GET
@Produces(MediaType.APPLICATION_JSON)

public Response hello()
{
	return Response.ok("hello worlds test").build();
}


}

test added