// Path: web-api/DropwizardHelloWorld/src/main/java/com/skeleton/beans/MyBean.java
// public class MyBean {
// 
//     private Long id;
//     private String someText;
// 
//     public MyBean(long id, String someText) {
//         this.id = id;
//         this.someText = someText;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getSomeText() {
//         return someText;
//     }
// 
//     public void setSomeText(String someText) {
//         this.someText = someText;
//     }
// }


import com.codahale.metrics.annotation.Timed;
import com.skeleton.beans.MyBean;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicLong;
package com.skeleton.resources;



/**
 * The resource class that is mapped to a URL
 *
 * @author saifasif
 */
@Path("/greet")
@Produces(MediaType.APPLICATION_JSON)
public class MyResource {

    private final String template;
    private final String defaultName;
    private final AtomicLong counter;

    public MyResource(String template, String defaultName) {
        this.template = template;
        this.defaultName = defaultName;
        this.counter = new AtomicLong();
    }

    @GET
    @Timed
// Path: web-api/DropwizardHelloWorld/src/main/java/com/skeleton/beans/MyBean.java
// public class MyBean {
// 
//     private Long id;
//     private String someText;
// 
//     public MyBean(long id, String someText) {
//         this.id = id;
//         this.someText = someText;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getSomeText() {
//         return someText;
//     }
// 
//     public void setSomeText(String someText) {
//         this.someText = someText;
//     }
// }


// Path: web-api/DropwizardHelloWorld/src/main/java/com/skeleton/resources/MyResource.java
import com.codahale.metrics.annotation.Timed;
import com.skeleton.beans.MyBean;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicLong;

package com.skeleton.resources;



/**
 * The resource class that is mapped to a URL
 *
 * @author saifasif
 */
@Path("/greet")
@Produces(MediaType.APPLICATION_JSON)
public class MyResource {

    private final String template;
    private final String defaultName;
    private final AtomicLong counter;

    public MyResource(String template, String defaultName) {
        this.template = template;
        this.defaultName = defaultName;
        this.counter = new AtomicLong();
    }

    @GET
    @Timed
    public MyBean sayHello(@QueryParam("name") Optional<String> name) {