게시물 인기순 조회

GET /api/posts/like

Headers

Name
Value

Content-Type

application/json

Parameters

Name
Type
Description

page

Integer

페이지 번호

size

Integer

페이지 사이즈

sort

List<String>

페이지 정렬

Body

Name
Type
Description

hostName

String

호스트 이름

location

String

위치

checkInDate

LocalDateTime

체크인 날짜

checkOutDate

LocalDateTime

체크아웃 날짜

minPrice

Integer

최소 금액

maxPrice

Integer

최대 금액

amenities

List<String>

편의 용품 리스트

occupancy

Integer

수용 인원

Response

{
  "totalElements": 0,
  "totalPages": 0,
  "first": true,
  "last": true,
  "pageable": {
    "pageSize": 0,
    "paged": true,
    "pageNumber": 0,
    "offset": 0,
    "sort": {
      "unsorted": true,
      "sorted": true,
      "empty": true
    },
    "unpaged": true
  },
  "size": 0,
  "content": [
    {
      "postId": 0,
      "hostName": "string",
      "photoUrls": [
        "string"
      ],
      "location": "string",
      "pricePerNight": 0
    }
  ],
  "number": 0,
  "sort": {
    "unsorted": true,
    "sorted": true,
    "empty": true
  },
  "numberOfElements": 0,
  "empty": true
}

Last updated