package com.its.api.its.controller.vds;

import com.its.api.its.model.dto.vds.TbVdsCtlrDto;
import com.its.api.its.service.vds.TbVdsCtlrService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "13.VDS-0.공통")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vds/common")
public class VdsCommonController {

    private final TbVdsCtlrService service;

    @ApiOperation(value = "VDS 목록 조회(TB_VDS_CTLR)", response = TbVdsCtlrDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "/vds-list", produces = {"application/json; charset=utf8"})
    public List<TbVdsCtlrDto> findVdsCtlrAll() {
        return service.findAllList();
    }

}
