Skip to content

โœ… Area

Sunny Lee edited this page Sep 26, 2023 · 5 revisions

SUMMARY

URI Description
GET /areas/{areaId} ์ง€์—ญ ๊ฐœ๋ณ„ ์กฐํšŒ
GET /areas/feed ๋‚ด๋น„๊ฒŒ์ด์…˜ ํ—ค๋”์˜ 'ํ”ผ๋“œ' ๋ฉ”๋‰ด์— ์‚ฌ์šฉ๋จ

์ง€์—ญ ๊ฐœ๋ณ„ ์กฐํšŒ GET /areas/{areaId}

Request Parameters

Response Parameters

Field Type Description
areaId Long ์ง€์—ญ ID
metropolitan string ์ง€์—ญ ๋Œ€๋ถ„๋ฅ˜
city string ์ง€์—ญ ์†Œ๋ถ„๋ฅ˜

์˜ˆ์‹œ ์š”์ฒญ/์‘๋‹ต
Request

Response

{
    "areaId": 1,
    "metropolitan": "์„œ์šธ",
    "city": "๊ฐ•๋‚จ/์—ญ์‚ผ/์‚ผ์„ฑ/๋…ผํ˜„"
}

์ง€์—ญ ๊ฐœ๋ณ„ ์กฐํšŒ GET /areas/feed?page={page}&size={size}

Request Parameters

Field Type Description
page number page ๋ฒˆํ˜ธ: 0๋ถ€ํ„ฐ ์‹œ์ž‘
size number ๋ฐ์ดํ„ฐ์˜ ๊ฐœ์ˆ˜: ๋ฏธ์ง€์ • ์‹œ 48๊ฐœ

Response Parameters

Field Type Description
pageNumber number page ๋ฒˆํ˜ธ: 0๋ถ€ํ„ฐ ์‹œ์ž‘
size number ๋ฐ์ดํ„ฐ์˜ ๊ฐœ์ˆ˜: ๋ฏธ์ง€์ • ์‹œ 48๊ฐœ
total number ๋ฐ์ดํ„ฐ ์ด ๊ฐœ์ˆ˜
images object ๊ฐ์ฒด list
  • images
Field Type Description
area object ์ง€์—ญ ์ •๋ณด
title string ์‚ฌ์ง„ ์ด๋ฆ„
location string ์ง€์—ญ ์ƒ์„ธ ์ด๋ฆ„
photographer string ์‚ฌ์ง„์ž‘๊ฐ€๋ช…
url string ์‚ฌ์ง„ url
  • images-area
Field Type Description
areaId Long ์ง€์—ญ ID
metropolitan string ์ง€์—ญ ๋Œ€๋ถ„๋ฅ˜
city string ์ง€์—ญ ์†Œ๋ถ„๋ฅ˜

์˜ˆ์‹œ ์‘๋‹ต

{
  "images": [
    {
      "area": {
        "areaId": 0,
        "metropolitan": "string",
        "city": "string"
      },
      "title": "string",
      "location": "string",
      "photographer": "string",
      "url": "string"
    }
  ],
  "pageNumber": 0,
  "size": 0,
  "total": 0
}
Clone this wiki locally