숙소 API

숙소 목록 조회

Changed on

숙소 목록을 조회합니다.

get/api/accommodations/search

Request

  • Base URL: https://api.ssok.info
  • URL: https://api.ssok.info/api/accommodations/search
  • Auth: HTTP bearer

Query parameters

tripBoardIdinteger required

숙소가 포함된 여행보드의 ID

pageinteger required

페이지 번호

sizeinteger required

페이지 크기

userIdinteger

유저 ID, 없는 경우 모든 유저가 생성한 숙소 목록을 반환합니다. 현재 parameter로 받는 것은 임시 로직입니다.

sortstring

정렬 기준, 기본 값은 saved_at_desc(최근 등록순)이고, price_asc(최저 가격순)을 제공합니다.

Response

OK

Changes

    • breaking

      added the new required query request parameter tripBoardId

    • warning

      deleted the query request parameter boardId

    • warning

      removed the optional property /// from the response with the status

    • info

      api operation id getAccommodationByBoardIdAndUserId removed and replaced with getAccommodationByTripBoardIdAndUserId

    • info

      added the optional property /// to the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • info

      the endpoint scheme security JWT was added to the API

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status