Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2440#discussion_r200028170
  
    --- Diff: 
store/core/src/main/java/org/apache/carbondata/store/rest/controller/HorizonController.java
 ---
    @@ -0,0 +1,96 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.carbondata.store.rest.controller;
    +
    +import java.util.UUID;
    +
    +import org.apache.carbondata.common.logging.LogService;
    +import org.apache.carbondata.common.logging.LogServiceFactory;
    +import org.apache.carbondata.core.datastore.row.CarbonRow;
    +import org.apache.carbondata.store.exception.StoreException;
    +import org.apache.carbondata.store.rest.model.dto.Load;
    +import org.apache.carbondata.store.rest.model.dto.Select;
    +import org.apache.carbondata.store.rest.model.dto.Table;
    +import org.apache.carbondata.store.rest.model.validate.RequestValidator;
    +import org.apache.carbondata.store.rest.model.vo.LoadRequest;
    +import org.apache.carbondata.store.rest.model.vo.SelectRequest;
    +import org.apache.carbondata.store.rest.model.vo.SelectResponse;
    +import org.apache.carbondata.store.rest.model.vo.TableRequest;
    +import org.apache.carbondata.store.rest.service.HorizonService;
    +
    +import org.springframework.http.HttpStatus;
    +import org.springframework.http.MediaType;
    +import org.springframework.http.ResponseEntity;
    +import org.springframework.web.bind.annotation.RequestBody;
    +import org.springframework.web.bind.annotation.RequestMapping;
    +import org.springframework.web.bind.annotation.RestController;
    +
    +@RestController
    +public class HorizonController {
    +
    +  private static LogService LOGGER =
    +      LogServiceFactory.getLogService(HorizonController.class.getName());
    +
    +  private HorizonService service;
    +
    +  public HorizonController() {
    +    service = HorizonService.getInstance();
    +  }
    +
    +  @RequestMapping(value = "/hello")
    +  public ResponseEntity<String> hello() {
    +    return new ResponseEntity<>("Hello world", HttpStatus.OK);
    +  }
    +
    +
    +  @RequestMapping(value = "/table/create", produces = 
MediaType.APPLICATION_JSON_VALUE)
    --- End diff --
    
    please add comment to describe the request and response content


---

Reply via email to