-
Notifications
You must be signed in to change notification settings - Fork 0
โ Snap Photo
Sunny Lee edited this page Sep 25, 2023
·
2 revisions
URI | Description |
---|---|
๐ POST /photos | ๋ฒ ์คํธ ์ค๋ ์ฌ์ง ๋ฑ๋ก |
๐ GET /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"
}
๐ 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"
}
]