// Path: src/main/java/org/iotlabs/dashboard/transformer/JsonTransformer.java
// public class JsonTransformer implements ResponseTransformer {
//     private static final Gson gson = new Gson();
// 
//     @Override
//     public String render(Object model) throws Exception {
//         return gson.toJson(model);
//     }
// }


import com.google.gson.annotations.SerializedName;
import org.iotlabs.dashboard.transformer.JsonTransformer;
import static spark.Spark.get;
package org.iotlabs.dashboard.blueprints;



public class TestBluePrint extends AbstractBluePrint  {

    public TestBluePrint() {
        super("test");
    }

    @Override
    public void register() {
        get(getEndPoint("/"), (req, res)  -> "test");
        get(getEndPoint("json"), (req, res)-> {
            TestModel testModel = new TestModel();
            testModel.id = 1;
            testModel.user = "test";
            return testModel;
// Path: src/main/java/org/iotlabs/dashboard/transformer/JsonTransformer.java
// public class JsonTransformer implements ResponseTransformer {
//     private static final Gson gson = new Gson();
// 
//     @Override
//     public String render(Object model) throws Exception {
//         return gson.toJson(model);
//     }
// }


// Path: src/test/java/org/iotlabs/dashboard/blueprints/TestBluePrint.java
import com.google.gson.annotations.SerializedName;
import org.iotlabs.dashboard.transformer.JsonTransformer;
import static spark.Spark.get;

package org.iotlabs.dashboard.blueprints;



public class TestBluePrint extends AbstractBluePrint  {

    public TestBluePrint() {
        super("test");
    }

    @Override
    public void register() {
        get(getEndPoint("/"), (req, res)  -> "test");
        get(getEndPoint("json"), (req, res)-> {
            TestModel testModel = new TestModel();
            testModel.id = 1;
            testModel.user = "test";
            return testModel;
        }, new JsonTransformer());