package kr.co.uplus.ez.api.sample;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;

@RestController
public class SampleController {

	@Autowired
	private SampleService service;

	@ApiOperation(value = "sample", notes = "샘플 get api입니다.")
	@ApiResponses({
		@ApiResponse(code = HttpServletResponse.SC_OK, message = "sample")
	})
	@RequestMapping(value = "/sample/list", method = {RequestMethod.GET})
	public List<Sample> getSample(@ApiParam(value = "testId입니다", required = true) Long testId) {
		return service.getSample();
	}
}
