대목(Passage)

유사 문장 후보 조회

저장 전 같은 도서의 인접 페이지(±1)에서 정규화 해시가 같은 대목 후보를 조회합니다. groupId를 지정하면 그 모임 전용 대목만(요청자는 모임원이어야 함), 생략하면 전역 공개 대목만 비교합니다. Authorization: Bearer {accessToken} 헤더로 인증합니다.

post/api/passages/similar-check

Request

  • Base URL: https://api-dev.pallang.co.kr
  • URL: https://api-dev.pallang.co.kr/api/passages/similar-check
  • Auth: HTTP bearer

Request body

bookIdinteger required
pageNumberinteger
quotedTextstring required
groupIdinteger nullable

모임 ID. 없으면 전역 공개 대목 기준으로 비교합니다.

Example request

{
  "bookId": 1,
  "pageNumber": 87,
  "quotedText": "우리는 모두 이야기를 찾아 헤맨다.",
  "groupId": 1
}

Response

조회 성공 (후보가 없으면 빈 배열)

Changes

No recorded changes to this operation across all 1 revision of this API.