Skip to content

โœ… Snap Photo

Sunny Lee edited this page Sep 25, 2023 · 2 revisions

SUMMARY

URI Description
๐Ÿ“Œ POST /photos ๋ฒ ์ŠคํŠธ ์Šค๋ƒ…์‚ฌ์ง„ ๋“ฑ๋ก
๐Ÿ“Œ GET /photos ๋ฒ ์ŠคํŠธ ์Šค๋ƒ…์‚ฌ์ง„ ๋ชจ์•„๋ณด๊ธฐ

๋ฒ ์ŠคํŠธ ์Šค๋ƒ…์‚ฌ์ง„ ๋“ฑ๋ก POST /photos

๐Ÿ“Œ Request Parameters

  • Headers: Authorization
Field Type Description
imageUrl string ๋“ฑ๋กํ•  ์‚ฌ์ง„ URL
photoDate LocalDateTime ์‚ฌ์ง„ ์ดฌ์˜ ์ผ์ž
yyyy-MM-ddThh:mm:ss
location string ์‚ฌ์ง„ ์ดฌ์˜ ์žฅ์†Œ
photographerId Long ์‚ฌ์ง„ ์ž‘๊ฐ€ ID
tag1 string ํƒœ๊ทธ 1
tag2 string ํƒœ๊ทธ 2
tag3 string ํƒœ๊ทธ 3

Response Parameters - List

Field Type Description
snapPhotoId Long ๋ฒ ์ŠคํŠธ ์Šค๋ƒ…์‚ฌ์ง„ ID
imageUrl string ๋“ฑ๋กํ•œ ์‚ฌ์ง„ URL
photoDate LocalDateTime ์‚ฌ์ง„ ์ดฌ์˜ ์ผ์ž
yyyy-MM-ddThh:mm:ss
location string ์‚ฌ์ง„ ์ดฌ์˜ ์žฅ์†Œ
photographerId Long ์‚ฌ์ง„ ์ž‘๊ฐ€ ID
tag1 string ํƒœ๊ทธ 1
tag2 string ํƒœ๊ทธ 2
tag3 string ํƒœ๊ทธ 3

์˜ˆ์‹œ ์š”์ฒญ/์‘๋‹ต
๐Ÿ“Œ Request

{
    "imageUrl": "http://image.co.kr",
    "photoDate": "2023-09-10T20:32:00",
    "location": "์„œ์šธ์‹œ ๋งˆํฌ๊ตฌ ์šฐ๋ฆฌ์ง‘",
    "photographerId": 25,
    "photographerName": "์‚ฌ์ง„์ž‘๊ฐ€์˜ˆ์ง€",
    "tag1": "tag1",
    "tag2": "tag2",
    "tag3": "tag3"
}

Response

{
    "snapPhotoId": 1,
    "imageUrl": "http://image.co.kr",
    "photoDate": "2023-09-10T20:32:00",
    "location": "์„œ์šธ์‹œ ๋งˆํฌ๊ตฌ ์šฐ๋ฆฌ์ง‘",
    "photographerId": 25,
    "photographerName": "์‚ฌ์ง„์ž‘๊ฐ€์˜ˆ์ง€",
    "tag1": "tag1",
    "tag2": "tag2",
    "tag3": "tag3"
}

๋ฒ ์ŠคํŠธ ์Šค๋ƒ…์‚ฌ์ง„ ๋ชจ์•„๋ณด๊ธฐ GET /photos

๐Ÿ“Œ Request Parameters

  • Headers: Authorization

Response Parameters

Field Type Description
snapPhotoId Long ๋ฒ ์ŠคํŠธ ์Šค๋ƒ…์‚ฌ์ง„ ID
imageUrl string ๋“ฑ๋กํ•œ ์‚ฌ์ง„ URL
photoDate LocalDateTime ์‚ฌ์ง„ ์ดฌ์˜ ์ผ์ž. yyyy-MM-ddThh:mm:ss
location string ์‚ฌ์ง„ ์ดฌ์˜ ์žฅ์†Œ
photographerId Long ์‚ฌ์ง„ ์ž‘๊ฐ€ ID
tag1 string ํƒœ๊ทธ 1
tag2 string ํƒœ๊ทธ 2
tag3 string ํƒœ๊ทธ 3

์˜ˆ์‹œ ์š”์ฒญ/์‘๋‹ต
๐Ÿ“Œ Request

{
    "imageUrl": "http://image.co.kr",
    "photoDate": "2023-09-10T20:32:00",
    "location": "์„œ์šธ์‹œ ๋งˆํฌ๊ตฌ ์šฐ๋ฆฌ์ง‘",
    "photographerId": 25,
    "photographerName": "์‚ฌ์ง„์ž‘๊ฐ€์˜ˆ์ง€",
    "tag1": "tag1",
    "tag2": "tag2",
    "tag3": "tag3"
}

Response

[
    {
        "snapPhotoId": 1,
        "imageUrl": "http://image.co.kr",
        "photoDate": "2023-09-10T20:32:00",
        "location": "์„œ์šธ์‹œ ๋งˆํฌ๊ตฌ ์šฐ๋ฆฌ์ง‘",
        "photographerId": 25,
        "photographerName": "์‚ฌ์ง„์ž‘๊ฐ€์˜ˆ์ง€",
        "tag1": "tag1",
        "tag2": "tag2",
        "tag3": "tag3"
    },
    {
        "snapPhotoId": 2,
        "imageUrl": "http://image.com",
        "photoDate": "2023-09-21T00:16:00",
        "location": "์„œ์šธ์‹œ ๋งˆํฌ๊ตฌ ์ค‘๋™๋™",
        "photographerId": 25,
        "photographerName": "์‚ฌ์ง„์ž‘๊ฐ€์˜ˆ์ง€",
        "tag1": "ํƒœ๊ทธ1",
        "tag2": "ํƒœ๊ทธ2",
        "tag3": "ํƒœ๊ทธ๊ทธ3"
    }
]