package com.example.kylo.module.rest;

import com.google.common.collect.Lists;
import com.thinkbiganalytics.DateTimeUtil;

import org.apache.commons.lang3.StringUtils;
import org.springframework.core.env.AbstractEnvironment;
import org.springframework.core.env.Environment;
import org.springframework.core.env.PropertiesPropertySource;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;

import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
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 io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.SwaggerDefinition;
import io.swagger.annotations.Tag;

@Api(tags = "Example Module")
@Path("/v1/example/module")
@SwaggerDefinition(tags = @Tag(name = "Example Module", description = "Example Module"))
public class ExampleModuleController {


    @Inject
    HttpServletRequest request;

    /**
     * Get the configuration information
     *
     * @return A map of name value key pairs
     */
    @GET
    @Path("/food")
    @Produces(MediaType.APPLICATION_JSON)
    @ApiOperation("Gets sample foods.")
    @ApiResponses({
                      @ApiResponse(code = 200, message = "Returns sample foods.", response = List.class)
                  })
    public Response getConfiguration() {
       List<String> names = Lists.newArrayList("Pizza","Hamburger","Hot dog","Toast","Candy");


        return Response.ok(names).build();
    }

}

@@ -28,24 +28,684 @@
 dule.rest;%0A%0A
+/*-%0A * #%25L%0A * example-module-services%0A * %25%25%0A * Copyright (C) 2017 ThinkBig Analytics%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *     http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0A%0A
 import com.g

Add license header to Java file