기본 정보


공통 응답 형식

{
  "status": "success" | "error",
  "data": ...,
  "message": "설명 메시지"
}


공통 데이터 구조

{
  "id": 1,
  "title": "책 제목",
  "cover_prompt": "프롬프트 내용",
  "cover_url": "<https://example.com/cover.png>",
  "author": "작가 이름",
  "created_at": "2025-05-29T14:00:00",
  "updated_at": "2025-05-29T15:00:00"
}

※ 목록 조회/상세 조회/등록/수정 등 모든 응답은 위 구조를 기반으로 통일


API 목록

1. 도서 목록 조회

응답

{
  "status": "success",
  "data": [
    {
      "id": 1,
      "title": "달빛 아래에서",
      "cover_prompt": "달과 밤에 어울리는 이야기",
      "cover_url": "<https://example.com/cover1.png>",
      "author": "홍길동",
      "created_at": "2025-05-29T14:00:00",
      "updated_at": "2025-05-29T14:00:00"
    },
    {
      "id": 2,
      "title": "a",
      "cover_prompt": "b",
      "cover_url": "c",
      "author": "d",
      "created_at": "2025-05-29T14:00:00",
      "updated_at": "2025-05-29T14:00:00"
    }
  ],
  "message": "도서 목록 조회 성공"
}