package apps;

import org.jooby.Request;
import org.jooby.Response;
import org.jooby.Route;
import org.jooby.Session;
import org.jooby.apitool.Cat;
import org.jooby.mvc.Flash;
import org.jooby.mvc.GET;
import org.jooby.mvc.Local;
import org.jooby.mvc.Path;
import org.jooby.mvc.Produces;

/**
 * Produces Cat object
 *
 * Next line
 */
public class R540 {
  /**
   * Another description
   *
   * Another line
   *
   * @param name Cat's name
   * @return Returns a cat {@link Cat}
   */
  @Path("/api/cat/:name")
  @Produces("application/json")
  @GET
  public Cat get(Request req, Response response, Session session, Route route, String name,
      @Flash int flashParam, @Local double localParam) {
    Cat cat = new Cat();
    cat.setName(name);

    return cat;
  }
}
