package com.demo1.board.api;

import java.util.List;

import com.demo1.board.api.dto.BoardRequest;
import com.demo1.board.api.dto.BoardResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

import org.springframework.http.ResponseEntity;

@Tag(name = "데모 Board API")
public interface BoardControllerDoc {
    @Operation(summary = "Board 목록 요청", description = "Board의 목록을 조회 합니다.")
    ResponseEntity<List<BoardResponse>> getBoards();
    @Operation(summary = "Board 상세 요청", description = "Board의 상세 조회 합니다.")
    ResponseEntity<BoardResponse> getBoard(Long id);
    @Operation(summary = "Board 생성 요청", description = "Board를 생성 합니다.")
    ResponseEntity<BoardResponse> createBoard(BoardRequest request);
    @Operation(summary = "Board 수정 요청", description = "Board를 수정 합니다.")
    ResponseEntity<BoardResponse> updateBoard(Long id, BoardRequest request);
    @Operation(summary = "Board 삭제 요청", description = "Board를 삭제 합니다.")
    ResponseEntity<Long> deleteBoard(Long id);
}
