-
Notifications
You must be signed in to change notification settings - Fork 0
SnapSpot API
YEJI edited this page Sep 22, 2023
·
46 revisions
- ํ์๊ฐ์ ์ ํ์ ์ ํํ๊ณ ํ์ ์ ๋ณด๋ฅผ ์ ๋ ฅํ ๋ค ์ผ๋ฐ ํ์๊ฐ์ ์ ํฉ๋๋ค.
- Method:
POST
- URI:
/auth/signup
- Request Body
{ "role" : "ROLE_MEMBER", "email" : "[email protected]", "nickname" : "traveler", "password" : "tourlover123" }
- Success Response
- HTTP Status Code:
201 Created
{ "nickname" : "traveler", "email" : "[email protected]", "role" : "ROLE_MEMBER" }
- HTTP Status Code:
- ์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ์ ๋ ฅํ๊ณ ๋ก๊ทธ์ธํฉ๋๋ค.
- Method:
POST
- URI:
/auth/signin
- Request Body
{ "email" : "[email protected]", "password" : "tourlover123" }
- Success Response
- HTTP Status Code:
201 Created
{ "email": "[email protected]", "token": { "accessToken": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b3VybG92ZXJAZ21haWwuY29tIiwicm9sZSI6IlJPTEVfTUVNQkVSIiwiZXhwIjoxNjk0NDQ1Mjk0fQ.pwTjZdx6KFGWiq5w0hm9hlUUgeiAUBmOx4lYbfCyggI", "refreshToken": "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTQ3OTA4OTR9.zGIAE1sXwgMvT1C44S0c8INrXM_kkGOqF1uaMw7o_Vc" } }
- HTTP Status Code:
- ํ์๊ฐ์ ์ ํ์ ์ ํํ๊ณ ์นด์นด์ค ๊ณ์ ์ผ๋ก ํ์๊ฐ์ ํฉ๋๋ค.
- Method:
POST
- URI:
/auth/kakao/signup
- Request Body
{ "accessToken" : "Mg6j23h5mUCy0yZkzx9TVpu6kJXggo7tcsd070VmCiolTwAAAYpACPLH", "refreshToken" : "Mg6j23h5mUCy0yZkzx9TVpu6kJXggo7tcsd070VmCiolTwAAAYpACPLH", "role" : "ROLE_PHOTOGRAPHER" }
- Success Response
- HTTP Status Code:
201 Created
{ "nickname" : "happysnap", "email" : "[email protected]", "role" : "ROLE_PHOTOGRAPHER" }
- HTTP Status Code:
- ์นด์นด์ค ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธํฉ๋๋ค.
- Method:
POST
- URI:
/auth/kakao/signin
- Request Body
{ "accessToken" : "Mg6j23h5mUCy0yZkzx9TVpu6kJXggo7tcsd070VmCiolTwAAAYpACPLH", "refreshToken" : "Mg6j23h5mUCy0yZkzx9TVpu6kJXggo7tcsd070VmCiolTwAAAYpACPLH" }
- Success Response
- HTTP Status Code:
201 Created
{ "email" : "[email protected]", "token": { "accessToken": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJwaG90b2xvdmVAZ21haWwuY29tIiwicm9sZSI6IlJPTEVfTUVNFSKLDJjkldjfkSALmcnkQxNzIxfQ.ZBobiIRrAyeTlRKRu0BCsfdjl_jkj24ljsodjf55LSQ", "refreshToken": "eyJhbGciOiJIUzI1NiJ9.eysdfjlkEOXMXczMjF9.vVO8xEbzklkmnmzncbzCBNXMCiIgE1340tlW_5Q" } }
- HTTP Status Code:
- ํ ํฐ์ผ๋ก ๊ณ ๊ฐ ๊ณ์ ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/members/me
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
{ "email": "[email protected]", "nickname": "traveler", "profile" : null, "role": "ROLE_MEMBER" }
- HTTP Status Code:
- ๊ณ ๊ฐ ๊ณ์ ์ ๋ณด(๋๋ค์, ์ด๋ฉ์ผ, ํ๋กํ ์ฌ์ง)๋ฅผ ์์ ํฉ๋๋ค.
- Method:
PUT
- URI:
/members/setting
- Request Body
Headers: Authorization{ "nickname" : "์์ง", "profileImage" : "http://profile.com/profile123", "email" : "[email protected]", "password" : "yeji" }
- Success Response
- HTTP Status Code:
200 OK
{ "email": "[email protected]", "nickname": "์์ง", "profile" : "http://profile.com/profile123", "role": "ROLE_MEMBER" }
- HTTP Status Code:
- ํ ํฐ์ผ๋ก ์ฌ์ง ์๊ฐ ๊ณ์ ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/photographers/me
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
{ "member": { "email": "[email protected]", "nickname": "happysnap", "profile": null, "role": "ROLE_PHOTOGRAPHER" }, "photographerId": 19, "lowestPay": null, "paymentImage": null, "bio": null, "images": { "image1": null, "image2": null, "image3": null, "image4": null, "image5": null, "image6": null, "image7": null, "image8": null, "image9": null, "image10": null }, "areas": [], "unableSchedules": { "unableDates": [] }, "sns": { "homepage": null, "instagram": null, "kakaoChannel": null, "twitter": null, "naverBlog": null }, "specialList": { "keywords": [] }, "tags": { "tag1": null, "tag2": null, "tag3": null } }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ ๊ณ์ ์ ๋ณด(๋๋ค์, ์ด๋ฉ์ผ, ํ๋กํ ์ฌ์ง)๋ฅผ ์์ ํฉ๋๋ค.
- Method:
PUT
- URI:
/photographers/setting
- Request Body
Headers: Authorization{ "nickname" : "์ฌ์ง์๊ฐ์์ง", "profileImage" : "http://ewha.com/ewha", "email" : "[email protected]", "password" : "kimyeji" }
- Success Response
- HTTP Status Code:
200 OK
{ "email": "[email protected]", "nickname": "์ฌ์ง์๊ฐ์์ง", "profile" : "http://ewha.com/ewha", "role": "ROLE_PHOTOGRAPHER" }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ ํ๋กํ ์ ๋ณด๋ฅผ ์์ ํฉ๋๋ค.
- Method:
PUT
- URI:
/photographers/me
- Request Body
Headers: Authorization{ "nickname" : "ํ๋ณต์ค๋ ", "profileImage" : "https://test.profile.com", "paymentImage" : "https://test.payment.com", "lowestPay" : 50000, "bio" : "์์ฐ์ค๋ฌ์ด ๋ชจ์ต์ ๋ด์๋๋ ค์", "areaId" : [1, 2, 3], "sns" : { "instagram" : "happysnap_", "twitter" : "happysnap_", "kakaoChannel" : "https://pf.kakao.com/_happySNAP", "naverBlog" : "https://blog.naver.com", "homepage" : "https://happysnap.com" }, "specialList" : ["FRIEND"], "tag" : { "tag1" : "์น๊ตฌ", "tag2" : "์ถ์ต", "tag3" : "๋ชฝํ์ " }, "unableDates" : ["2023-11-11T00:00:00"], "image" : { "image1" : "https://test.image1.com", "image2" : "https://test.image2.com", "image3" : "https://test.image3.com", "image4" : "https://test.image4.com", "image5" : "https://test.image5.com" } }
- Success Response
- HTTP Status Code:
200 OK
{ "member": { "email": "[email protected]", "nickname": "ํ๋ณต์ค๋ ", "profile": "https://test.profile.com", "role": "ROLE_PHOTOGRAPHER" }, "photographerId": 19, "lowestPay": 50000, "paymentImage": "https://test.payment.com", "bio": "์์ฐ์ค๋ฌ์ด ๋ชจ์ต์ ๋ด์๋๋ ค์", "images": { "image1": "https://test.image1.com", "image2": "https://test.image2.com", "image3": "https://test.image3.com", "image4": "https://test.image4.com", "image5": "https://test.image5.com", "image6": null, "image7": null, "image8": null, "image9": null, "image10": null }, "areas": [], "unableSchedules": { "unableDates": [ "2023-11-11T00:00:00" ] }, "sns": { "homepage": "https://happysnap.com", "instagram": "happysnap_", "kakaoChannel": "https://pf.kakao.com/_happySNAP", "twitter": "happysnap_", "naverBlog": "https://blog.naver.com" }, "specialList": { "keywords": [ "FRIEND" ] }, "tags": { "tag1": "์น๊ตฌ", "tag2": "์ถ์ต", "tag3": "๋ชฝํ์ " } }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ ํ ๋ช ์ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/photographers/{photographerId}
- Request Body
- Success Response
- HTTP Status Code:
200 OK
{ "member": { "email": "[email protected]", "nickname": "ํ๋ณต์ค๋ ", "profile": "https://test.profile.com", "role": "ROLE_PHOTOGRAPHER" }, "photographerId": 19, "lowestPay": 50000, "paymentImage": "https://test.payment.com", "bio": "์์ฐ์ค๋ฌ์ด ๋ชจ์ต์ ๋ด์๋๋ ค์", "images": { "image1": "https://test.image1.com", "image2": "https://test.image2.com", "image3": "https://test.image3.com", "image4": "https://test.image4.com", "image5": "https://test.image5.com", "image6": null, "image7": null, "image8": null, "image9": null, "image10": null }, "areas": [ { "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }, { "areaId": 2, "metropolitan": "์์ธ", "city": "์์ด/์ ์ฌ/๋ฐฉ๋ฐฐ" }, { "areaId": 3, "metropolitan": "์์ธ", "city": "์ ์ค/์ ์ฒ" } ], "unableSchedules": { "unableDates": [ "2023-11-11T00:00:00" ] }, "sns": { "homepage": "https://happysnap.com", "instagram": "happysnap_", "kakaoChannel": "https://pf.kakao.com/_happySNAP", "twitter": "happysnap_", "naverBlog": "https://blog.naver.com" }, "specialList": { "keywords": [ "FRIEND" ] }, "tags": { "tag1": "์น๊ตฌ", "tag2": "์ถ์ต", "tag3": "๋ชฝํ์ " } }
- HTTP Status Code:
- ์ง์ญ, ์ ๋ฌธ๋ถ์ผ, ๊ฐ๋ฅ์ผ์๋ฅผ ์กฐ๊ฑด์ผ๋ก ์ฌ์ง ์๊ฐ ๋ชฉ๋ก์ ์กฐํํฉ๋๋ค.
- ๊ธฐ๋ณธ, ๊ฐ๊ฒฉ ๋ฎ์ ์, ๋ณ์ ๋์ ์, ๋ฆฌ๋ทฐ ๋ง์ ์ ์ ๋ ฌ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
- ํ ํ์ด์ง์ 15๊ฐ ๋ฐํ๋ฉ๋๋ค.
- Method:
GET
- URI:
/photographers
- Query Parameter (์ ํ)
- areaId (์ง์ญ id, ์ซ์)
- special (์ ๋ฌธ๋ถ์ผ, ๋ฌธ์)
- ableDate (๊ฐ๋ฅ์ผ์, yyyy-MM-ddTHH:mm:ss)
- sort (์ ๋ ฌ, PAY / SCORE / REVIEW) - ์ ํ ์ ํ ์ ๊ธฐ๋ณธ ์ ๋ ฌ
- page (ํ์ด์ง, ์ซ์ | ์ฒซ๋ฒ์งธ ํ์ด์ง=0, ๋๋ฒ์งธ ํ์ด์ง=1, ...) - ์ ํ ์ ํ ์ ์ฒซ๋ฒ์งธ ํ์ด์ง
- Request Body
- Success Response
- URI:
/photographers
- HTTP Status Code:
200 OK
[ { "photographerId": 1, "nickname": "sunnasdfy", "lowestPay": null, "image": null, "areas": [], "specialList": { "keywords": [ "FAMILY" ] }, "tags": { "tag1": null, "tag2": null, "tag3": null } }, { "photographerId": 2, "nickname": "sunnasrtdfgdfy", "lowestPay": null, "image": null, "areas": [], "specialList": { "keywords": [ "FAMILY" ] }, "tags": { "tag1": null, "tag2": null, "tag3": null } }, "..." ]
- URI:
- Success Response
- URI:
/photographers?areaId=1&special=WEDDING&ableDate=2023-11-01T00:00:00
- HTTP Status Code:
200 OK
[ { "photographerId": 5, "nickname": "์๋์๋", "lowestPay": 5000, "image": "https://test.image3.com", "areas": [ { "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }, { "areaId": 2, "metropolitan": "์์ธ", "city": "์์ด/์ ์ฌ/๋ฐฉ๋ฐฐ" }, { "areaId": 3, "metropolitan": "์์ธ", "city": "์ ์ค/์ ์ฒ" } ], "specialList": { "keywords": [ "WEDDING" ] }, "tags": { "tag1": "์ ๋ฅ", "tag2": "๋ฐ๋", "tag3": "์งฑ๊ท" } }, { "photographerId": 24, "nickname": "์ดํด์ฐ", "lowestPay": 250000, "image": "https://images.unsplash.com/photo-1537633552985-df8429e8048b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Njd8fCVFQyU5QiVBOCVFQiU5NCVBOSUyMCVFQiU4RiU5OSVFQyU5NiU5MXxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60", "areas": [ { "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }, { "areaId": 2, "metropolitan": "์์ธ", "city": "์์ด/์ ์ฌ/๋ฐฉ๋ฐฐ" }, { "areaId": 3, "metropolitan": "์์ธ", "city": "์ ์ค/์ ์ฒ" }, { "areaId": 4, "metropolitan": "์์ธ", "city": "์ฌ์๋/๋น์ฐ/๋ฌธ๋" }, { "areaId": 24, "metropolitan": "๊ฒฝ๊ธฐ", "city": "์์ ์ธ๊ณ" }, { "areaId": 25, "metropolitan": "๊ฒฝ๊ธฐ", "city": "์์์ญ/๊ตฌ์ด/ํ๊ถ/์ฅ์๊ตฌ" }, { "areaId": 26, "metropolitan": "๊ฒฝ๊ธฐ", "city": "์์์์ฒญ/๊ถ์ /์ํต/์ธ๋ฅ" }, { "areaId": 27, "metropolitan": "๊ฒฝ๊ธฐ", "city": "์์/ํ์ด/์ธ๋์/๊ณผ์ฒ" } ], "specialList": { "keywords": [ "WEDDING", "FAMILY" ] }, "tags": { "tag1": "๋ถ๋ถ", "tag2": "๊ฐ์กฑ", "tag3": "์ฌ๋" } } ]
- URI:
- ๊ฒ์์ด์ ํด๋นํ๋ ์ด๋ฆ์ ๊ฐ์ง๊ณ ์๊ฑฐ๋, ๊ฒ์์ด์ ํด๋นํ๋ ์ง์ญ์์ ํ๋ํ๋ ์ฌ์ง ์๊ฐ ๋ชฉ๋ก์ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/photographers/search?keyword={keyword}
- Query Parameter
- keyword (๊ฒ์์ด, ๋ฌธ์ ๋ฐ ์ซ์)
- Request Body
- Success Response
- HTTP Status Code:
200 OK
{ "nicknameResult": [ { "photographerId": 5, "nickname": "์๋์๋", "lowestPay": 5000, "image": "https://test.image3.com", "areas": [ { "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }, { "areaId": 2, "metropolitan": "์์ธ", "city": "์์ด/์ ์ฌ/๋ฐฉ๋ฐฐ" }, { "areaId": 3, "metropolitan": "์์ธ", "city": "์ ์ค/์ ์ฒ" } ], "specialList": { "keywords": [ "WEDDING" ] }, "tags": { "tag1": "์ ๋ฅ", "tag2": "๋ฐ๋", "tag3": "์งฑ๊ท" } } ], "areaResult": [] }
- HTTP Status Code:
- ๋ชจ๋ ์ฌ์ง ์๊ฐ ์ด๋ฆ์ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/photographers/name
- Request Body
- Success Response
- HTTP Status Code:
200 OK
[ { "photographerId": 1, "nickname": "sunnasdfy" }, { "photographerId": 2, "nickname": "sunnasrtdfgdfy" }, { "photographerId": 3, "nickname": "sunnasrtdfgdfy" }, { "photographerId": 4, "nickname": "sunnasrtdfgdfy" }, { "photographerId": 5, "nickname": "์๋์๋" }, "..." ]
- HTTP Status Code:
- ์คํ ํ๋๋ฅผ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/spots/{spotId}
- Request Body
- Success Response
- HTTP Status Code:
200 OK
{ "spotId": 1, "name": "2012_๋น๋ณด์ด R16 Korea", "address": "์์ธ ์กํ๊ตฌ ์ฌ๋ฆผํฝ๊ณต์ ์ฌ๋ฆผํฝํ", "theme": null, "images": [] }
- HTTP Status Code:
- ์ง์ญ์ ๊ธฐ์ค์ผ๋ก ์คํ์ ๋ชฉ๋ก ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/spots/area
- Request Body
{ "areaId" : 17 }
- Success Response
- HTTP Status Code:
200 OK
[ { "spotId": 7, "name": "9.81 ํํฌ", "address": "์ ์ฃผํน๋ณ์์น๋ ์ ์ฃผ์ ์ ์์", "theme": null, "images": [] }, { "spotId": 11, "name": "์ ์ ๊ตฌ์๋ฆฌ ๋์ผ์ ", "address": "์ ์ฃผํน๋ณ์์น๋ ์ ์ฃผ์ ์ ์์", "theme": null, "images": [] } ]
- HTTP Status Code:
- ์คํ ์ด๋ฏธ์ง๋ฅผ ํ๋ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/images/{imageId}
- Request Body
- Success Response
- HTTP Status Code:
200 OK
{ "imageId": 1, "spot": { "spotId": 1, "area": { "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }, "name": "2012_๋น๋ณด์ด R16 Korea", "address": "์์ธ ์กํ๊ตฌ ์ฌ๋ฆผํฝ๊ณต์ ์ฌ๋ฆผํฝํ", "theme": null }, "image": null }
- HTTP Status Code:
- ์ง์ญ ํ๋๋ฅผ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/areas/{areaId}
- Request Body
- Success Response
- HTTP Status Code:
200 OK
{ "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }
- HTTP Status Code:
- ์ดฌ์ ์์ฝ ๊ฐ๋ณ ์กฐํ ๊ธฐ๋ฅ์ ๋๋ค.
- Method:
GET
- URI:
/plans/{planId}
- Request Body
Headers: Authorization(ํ์) Body:
{
"planId": "18ad30a9-3fec-4013-b192-cf7252a42d26",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"price": null,
"placeName": null,
"placeAddress": null,
"status": "DELIVERY",
"messages": [
{
"messageId": 1,
"isMine": true,
"sender": "MEMBER",
"contents": "hey"
},
{
"messageId": 2,
"isMine": true,
"sender": "MEMBER",
"contents": "hey"
},
{
"messageId": 3,
"isMine": true,
"sender": "MEMBER",
"contents": "hey"
},
{
"messageId": 4,
"isMine": false,
"sender": "PHOTOGRAPHER",
"contents": "hey"
},
{
"messageId": 5,
"isMine": false,
"sender": "PHOTOGRAPHER",
"contents": "๋๋์ผ ์ฌ์ง์๊ฐ"
}
]
}
- ๊ณ ๊ฐ์ด ์์ ์ ์์ฝ ๋ด์ญ์ ๋ชจ๋ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/plans/photographer/client
- Request Body
Headers: Authorization
{
"request": [
{
"planId": "3bdb4bbb-fa41-49dd-a600-8d27eefb222b",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "55db891e-cb1f-439a-bbc9-81eef74fcb30",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "63e57713-dfa7-4020-8b50-4c1b71f37f49",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "a837aae4-8fcf-4b52-b022-f752d987fd4f",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "cfd4d397-43f1-4c80-93cd-cbf21f716cc5",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "ddf82a29-7a15-49e3-ab7f-80afa9610227",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "de054f04-e875-4596-8348-f55a6ba73108",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
},
{
"planId": "f1079490-792d-4a61-97a2-21291c846831",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T12:30:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "REQUEST"
}
],
"reserved": [
{
"planId": "5c510b42-a682-4f94-9854-2ba0942530e7",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T00:00:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "TODAY"
},
{
"planId": "67abe74e-208c-4f8d-b995-05baac263062",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T00:00:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "TODAY"
},
{
"planId": "b1649bec-20f3-4424-b3b7-c8d9aca97ca2",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T00:00:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "TODAY"
},
{
"planId": "f8328bf9-9f99-4576-950f-09c8203f8a00",
"customer": 7,
"photographer": 1,
"planDate": "2023-09-15T00:00:00",
"category": "COUPLE",
"people": 2,
"wishPlace": "ํ๊ฐ๊ณต์",
"price": null,
"request": "์ ๋ถํ๋๋ฆฝ๋๋ค!",
"status": "COMPLETE"
}
]
}
- ๊ณ ๊ฐ์ด ์์ ์ ์์ฝ ๋ด์ญ์ ๋ชจ๋ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/plans/member
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
- ์ฌ์ง ์๊ฐ๊ฐ ์์ ์ ์์ฝ ๋ด์ญ์ ๋ชจ๋ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/plans/photographer
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
[ { "planId": "57351f46-e6b7-4fd6-b826-174a71a71284", "customer": 25, "photographer": 14, "planDate": "2022-11-10 12:30", "category": "COUPLE", "people": 2, "wishPlace": "ํ๊ฐ๊ณต์", "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "RESERVED" }, "..." ]
- HTTP Status Code:
- ๊ณ ๊ฐ์ด ์ฌ์ง ์๊ฐ์๊ฒ ์ค๋ ์ฌ์ง ์ดฌ์ ์์ฝ์ ์ ์ฒญํฉ๋๋ค.
- Method:
POST
- URI:
/plans
- Request Body
Headers: Authorization{ "photographerId" : 19, "planDate" : "2022-11-01T14:00:00", "time" : "12:30", "category" : "FRIEND", "people" : 4, "wishPlace" : "์ดํ์ฌ์๋ํ๊ต", "request" : "์ ๋ถํ๋๋ฆฝ๋๋ค!" }
- Success Response
- HTTP Status Code:
201 Created
{ "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "time" : "12:30", "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "REQUEST" }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ๊ฐ ์ ์ฒญ๋ ์ค๋ ์ฌ์ง ์ดฌ์ ์์ฝ์ ๊ฑฐ์ ๋ฐ ์ทจ์ํฉ๋๋ค.
- Method:
PUT
- URI:
/plans/refuse
- Request Body
Headers: Authorization{ "planId" : "57351f46-e6b7-4fd6-b826-174a71a71284", "contents" : "์๋ ํ์ธ์^^ ์ง์ฌ์ ๋ด์ ์์ฐ์ค๋ฌ์ด ๋ชจ์ต์ ๋ด์๋ด๋ ํดํผ์ค๋ ์ ๋๋ค. ์ ์ฒญํด์ฃผ์ ๋ ์ ๋ค๋ฅธ ์ผ์ ์ด ์์ด์ ์ดฌ์์ด ์ด๋ ค์ธ ๊ฒ ๊ฐ์์ใ ใ ํน์ 11์ 15์ผ์ด๋ 17์ผ์ ์ด๋ ์ ๊ฐ์? ๋ ์ง ๊ด์ฐฎ์ผ์๋ค๋ฉด ๋ค์ ์์ฝ ์ ์ฒญ ๋ถํ๋๋ฆฝ๋๋ค! ์ข์ ํ๋ฃจ ๋ณด๋ด์ธ์~ ๊ฐ์ฌํฉ๋๋ค^^" }
- Success Response
- HTTP Status Code:
200 OK
{ "status": 200, "code": "OK", "message": "์ค๋ ์ฌ์ง ์ดฌ์ ์์ฝ ๊ฑฐ์ ๋ฐ ์ทจ์", "details": "์ฌ์ง ์๊ฐ๊ฐ ์ค๋ ์ฌ์ง ์ดฌ์ ์์ฝ์ ๊ฑฐ์ ํ์ต๋๋ค." }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ๊ฐ ๊ณ ๊ฐ์๊ฒ ์ค๋ ์ฌ์ง ์ดฌ์ ๋น์ฉ ์ ๊ธ์ ์์ฒญํฉ๋๋ค.
- Method:
PUT
- URI:
/plans/deposit
- Request Body
Headers: Authorization{ "planId" : "57351f46-e6b7-4fd6-b826-174a71a71284", "price" : 120000, "placeName" : "์ฌ์๋ ํ๊ฐ๊ณต์", "placeAddress" : "์์ธํน๋ณ์ ์๋ฑํฌ๊ตฌ ์ฌ์๋๋ก 330", "message" : "์ ๊ธ ๊ณ์ข๋ ๊ตญ๋ฏผ์ํ 1234-5678์ ๋๋ค." }
- Success Response
- HTTP Status Code:
200 OK
{ "planId": "57351f46-e6b7-4fd6-b826-174a71a71284", "customer": 25, "photographer": 14, "planDate": "2022-11-10 12:30", "category": "COUPLE", "people": 2, "wishPlace": "ํ๊ฐ๊ณต์", "time" : "12:30", "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "price": 120000, "placeName": "์ฌ์๋ ํ๊ฐ๊ณต์", "placeAddress": "์์ธํน๋ณ์ ์๋ฑํฌ๊ตฌ ์ฌ์๋๋ก 330", "message": "์ ๊ธ ๊ณ์ข๋ ๊ตญ๋ฏผ์ํ 1234-5678์ ๋๋ค.", "status": "DEPOSIT" }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ๊ฐ ์ดฌ์ ๋น์ฉ ์ ๊ธ์ ํ์ธํ๊ณ ์์ฝ ์ผ์ ์ ํ์ ํ์ฌ ์์ฝ์ ์๋ฃํฉ๋๋ค.
- Method:
PUT
- URI:
/plans/reserve
- Request Body
Headers: Authorization{ "planId" : "57351f46-e6b7-4fd6-b826-174a71a71284", "contents" : "์ ๊ธ ํ์ธ๋์์ต๋๋ค. ์ดฌ์ ์ ์ํ์ ์์ ๋กญ๊ฒ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค! ์ดฌ์์ผ์ ๋ต๊ฒ ์ต๋๋ค^^" }
- Success Response
- HTTP Status Code:
200 OK
{ "status": 200, "code": "OK", "message": "์ค๋ ์ฌ์ง ์์ฝ์ด ์๋ฃ๋์์ต๋๋ค.", "details": "์ฌ์ง ์๊ฐ๊ฐ ์ดฌ์์ ๋ํ ์ ๊ธ์ ํ์ธํ๊ณ , ์ดฌ์ ์ผ์ ์ ํฝ์คํ์ต๋๋ค." }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ ๋๋ ๊ณ ๊ฐ์ด ์ค๋ ์ฌ์ง ์ดฌ์ ์ผ์ ์ ์ทจ์ํฉ๋๋ค.
- Method:
PUT
- URI:
/plans/cancel
- Request Body
Headers: Authorization{ "planId" : "57351f46-e6b7-4fd6-b826-174a71a71284", "reason" : "๊ฐ์ธ ์ผ์ ", "refundAccount" : "์ ํ์ํ 2222-4444" }
- Success Response
- HTTP Status Code:
200 OK
{ "status": 200, "code": "OK", "message": "์ค๋ ์ฌ์ง ์ดฌ์ ์ผ์ ์ ์ทจ์ํ์ต๋๋ค.", "details": "์ฌ์ง ์๊ฐ ํน์ ์ผ๋ฐ ๊ณ ๊ฐ์ด ์ค๋ ์ฌ์ง ์ดฌ์ ์ผ์ ์ ์ทจ์ํ์ต๋๋ค." }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ๊ฐ ๊ณ ๊ฐ์๊ฒ ์ค๋ ์ฌ์ง ํ์ผ์ ์ ๋ฌํฉ๋๋ค.
- Method:
PUT
- URI:
/plans/delivery
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
{ "status": 200, "code": "OK", "message": "์ค๋ ์ฌ์ง ํ์ผ์ ์ ๋ฌํ์ต๋๋ค.", "details": "์ฌ์ง ์๊ฐ๊ฐ ์ค๋ ์ฌ์ง์ ์ ๋ฌํ์ต๋๋ค." }
- HTTP Status Code:
- ๊ณ ๊ฐ์ด ๋ฆฌ๋ทฐ๋ฅผ ์์ฑํฉ๋๋ค.
- Method:
POST
- URI:
/reviews
- Request Body
Headers: Authorization{ "planId" : "f2ce844d-1b18-480f-ac78-548818e5c417", "score" : 5, "title" : "์ธ์์ฌ์ง ์ฐ์์ด์!", "comment" : "์๊ฐ๋ ๋๋ถ์ ์น๊ตฌ๋ค๊ณผ ์ข์ ์ถ์ต ๋ง๋ค์์ด์~ ์์๊ฒ ์ฐ์ด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!", "image" : "tourlover.jpg" }
- Success Response
- HTTP Status Code:
201 Created
{ "status": 201, "code": "CREATED", "message": "๋ฆฌ๋ทฐ๊ฐ ๋ฑ๋ก๋์์ต๋๋ค.", "details": null }
- HTTP Status Code:
- ์ฌ์ง ์๊ฐ๋ณ ๋ฆฌ๋ทฐ๋ฅผ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/reviews/photographer/{photographerId}
- Request Body
- Success Response
- HTTP Status Code:
200 OK
{ "photographer": { "member": { "email": "[email protected]", "nickname": "ํ๋ณต์ค๋ ", "profile": "https://test.profile.com", "role": "ROLE_PHOTOGRAPHER" }, "photographerId": 19, "lowestPay": 100000, "paymentImage": "https://test.payment.com", "bio": "์์ฐ์ค๋ฌ์ด ๋ชจ์ต์ ๋ด์๋๋ ค์", "images": { "image1": "https://test.image1.com", "image2": "https://test.image2.com", "image3": "https://test.image3.com", "image4": "https://test.image4.com", "image5": "https://test.image5.com", "image6": null, "image7": null, "image8": null, "image9": null, "image10": null }, "areas": [ { "areaId": 1, "metropolitan": "์์ธ", "city": "๊ฐ๋จ/์ญ์ผ/์ผ์ฑ/๋ ผํ" }, { "areaId": 2, "metropolitan": "์์ธ", "city": "์์ด/์ ์ฌ/๋ฐฉ๋ฐฐ" }, { "areaId": 3, "metropolitan": "์์ธ", "city": "์ ์ค/์ ์ฒ" } ], "unableSchedules": { "unableDates": [ "2023-11-11T00:00:00" ] }, "sns": { "homepage": "https://happysnap.com", "instagram": "happysnap_", "kakaoChannel": "https://pf.kakao.com/_happySNAP", "twitter": "happysnap_", "naverBlog": "https://blog.naver.com" }, "specialList": { "keywords": [ "FRIEND" ] }, "tags": { "tag1": "์น๊ตฌ", "tag2": "์ถ์ต", "tag3": "๋ชฝํ์ " } }, "totalReview": 4, "averageScore": 4.5, "reviews": [ { "reviewId": 7, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 5, "image": "snap.jpg", "title": "๋ฉ์ง ์ฌ์ง ๊ฐ์ฌํด์", "comment": "์ฌ์ง ๋๋ฌด ์์๋ค์~ ๊ฐ์ฌํฉ๋๋ค" }, { "reviewId": 8, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 5, "image": "tourlover.jpg", "title": "์ธ์์ฌ์ง ์ฐ์์ด์!", "comment": "์๊ฐ๋ ๋๋ถ์ ์น๊ตฌ๋ค๊ณผ ์ข์ ์ถ์ต ๋ง๋ค์์ด์~ ์์๊ฒ ์ฐ์ด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!" }, { "reviewId": 6, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 4, "image": "", "title": "", "comment": "" }, { "reviewId": 5, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 3, "image": "", "title": "", "comment": "" } ] }
- HTTP Status Code:
- ์ฌ์ฉ์๊ฐ ์์ฑํ ๋ฆฌ๋ทฐ๋ฅผ ์ ์ฒด์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/reviews/member
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
[ { "reviewId": 7, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 5, "image": "snap.jpg", "title": "๋ฉ์ง ์ฌ์ง ๊ฐ์ฌํด์", "comment": "์ฌ์ง ๋๋ฌด ์์๋ค์~ ๊ฐ์ฌํฉ๋๋ค" }, { "reviewId": 8, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 5, "image": "tourlover.jpg", "title": "์ธ์์ฌ์ง ์ฐ์์ด์!", "comment": "์๊ฐ๋ ๋๋ถ์ ์น๊ตฌ๋ค๊ณผ ์ข์ ์ถ์ต ๋ง๋ค์์ด์~ ์์๊ฒ ์ฐ์ด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!" }, { "reviewId": 6, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 4, "image": "", "title": "", "comment": "" }, { "reviewId": 5, "plan": { "planId": "f2ce844d-1b18-480f-ac78-548818e5c417", "customer": 21, "photographer": 19, "planDate": "2022-11-01T14:00:00", "category": "FRIEND", "people": 4, "wishPlace": "์ดํ์ฌ์๋ํ๊ต", "price": null, "request": "์ ๋ถํ๋๋ฆฝ๋๋ค!", "status": "DELIVERY" }, "score": 3, "image": "", "title": "", "comment": "" } ]
- HTTP Status Code:
- ์ข์ํ๋ ์๊ฐ์ ID๋ฅผ body๋ก ๋ฐ์์ ์ข์์๋ฅผ ์์ฑํฉ๋๋ค.
- Method:
POST
- URI:
/hearts
- Request Body
{ "photographerId" : 23 }
- Success Response
- HTTP Status Code:
201 Created
{ "heartId": 4, "memberName": "yeji", "photographerName": "๊ฐ์ง์", "message": "์ข์์๋ฅผ ๋๋ ์ต๋๋ค." }
- HTTP Status Code:
- ์ข์์๋ฅผ ๋๋ ๋ ์๊ฐ์ ID๋ฅผ body๋ก ๋ฐ์์ ์ข์์๋ฅผ ์ทจ์ํฉ๋๋ค.
- Method:
DELETE
- URI:
/hearts
- Request Body
{ "photographerId" : 23 }
- Success Response
- HTTP Status Code:
200 OK
{ "memberName": "yeji", "photographerName": "๊ฐ์ง์", "message": "์ข์์๋ฅผ ์ทจ์ํ์ต๋๋ค." }
- HTTP Status Code:
- ์ข์์ ๋๋ฅธ ์๊ฐ๋ค์ ์กฐํํฉ๋๋ค.
- Method:
GET
- URI:
/hearts
- Request Body
- Success Response
- HTTP Status Code:
200 OK
[ { "photographerId": 21, "nickname": "ํ๋๋ผ", "lowestPay": 120000, "image": "https://images.unsplash.com/photo-1536010305525-f7aa0834e2c7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTEyfHwlRUQlOTUlOUMlRUElQjUlQUQlMjAlRUMlOTclQUMlRUMlODQlQjF8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=500&q=60", "areas": [], "specialList": { "keywords": [ "FRIEND" ] }, "tags": { "tag1": "์๋ จ", "tag2": "๋ญ๋ง", "tag3": "๋ชฝํ์ " } }, { "photographerId": 22, "nickname": "์ ์ง์", "lowestPay": 100000, "image": "https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8ODR8fCVFQyVBMSVCOCVFQyU5NyU4NSVFQyU4QSVBNCVFQiU4MyU4NXxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60", "areas": [ { "areaId": 5, "metropolitan": "์์ธ", "city": "์ ๋ฆผ/์์ธ๋/์ฌ๋น/๋์" }, { "areaId": 9, "metropolitan": "์์ธ", "city": "์ ์ด/ํ๋/ํฉ์ /์ฐ๋จ" }, { "areaId": 12, "metropolitan": "์์ธ", "city": "์ข ๋ก/๋ํ๋ก/๋๋ฌ" }, { "areaId": 13, "metropolitan": "์์ธ", "city": "์ฑ์ ์ฌ๋/์ฑ๋ถ/์๊ณก" }, { "areaId": 14, "metropolitan": "์์ธ", "city": "์ดํ์/์ฉ์ฐ/์์ธ์ญ" }, { "areaId": 18, "metropolitan": "์์ธ", "city": "ํ๊ธฐ/๊ณ ๋ ค๋/์ฒญ๋๋ฆฌ/์ ์ค๋" }, { "areaId": 20, "metropolitan": "์์ธ", "city": "์์ญ๋ฆฌ/์ฑ์/๊ธํธ" }, { "areaId": 22, "metropolitan": "์์ธ", "city": "์๋ด/์ค๋/๋ฉด๋ชฉ" }, { "areaId": 23, "metropolitan": "์์ธ", "city": "ํ๋ฆ/๋ ธ์/๋๋ด/์ฐฝ๋" } ], "specialList": { "keywords": [ "FRIEND", "GRADUATION" ] }, "tags": { "tag1": "์ฐ์ ", "tag2": "์ฒญ์ถ", "tag3": "ํ๋ณต" } }, { "photographerId": 23, "nickname": "๊ฐ์ง์", "lowestPay": 200000, "image": "https://images.unsplash.com/photo-1603367563698-67012943fd67?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Njh8fCVFQSVCMCU4MCVFQyVBMSVCMSVFQyU4MiVBQyVFQyVBNyU4NHxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60", "areas": [], "specialList": { "keywords": [ "FAMILY" ] }, "tags": { "tag1": "๊ฐ์กฑ", "tag2": "์ฌ๋", "tag3": "ํ๋ณต" } } ]
- HTTP Status Code:
- ๊ณ ๊ฐ์ด ๋ฒ ์คํธ ์ค๋ ์ฌ์ง์ ๋ฑ๋กํฉ๋๋ค.
- Method:
POST
- URI:
/photos
- Request Body
Headers: Authorization{ "imageUrl" : "http://image.co.kr", "photoDate" : "2023-09-10T20:32:00", "location" : "์์ธ์ ๋งํฌ๊ตฌ ์ฐ๋ฆฌ์ง", "photographerId" : 25, "tag1" : "tag1", "tag2" : "tag2", "tag3" : "tag3" }
- Success Response
- HTTP Status Code:
201 Created
{ "snapPhotoId": 1, "imageUrl": "http://image.co.kr", "photoDate": "2023-09-10T20:32:00", "location": "์์ธ์ ๋งํฌ๊ตฌ ์ฐ๋ฆฌ์ง", "photographerId": 25, "photographerName": "์ฌ์ง์๊ฐ์์ง", "tag1": "tag1", "tag2": "tag2", "tag3": "tag3" }
- HTTP Status Code:
- ๊ณ ๊ฐ์ด ๋ฑ๋กํ ๋ฒ ์คํธ ์ค๋ ์ฌ์ง๋ค์ ์กฐํํฉ๋๋ค.
- ํ ํ์ด์ง์ 6๊ฐ ๋ฐํ๋ฉ๋๋ค.
- Method:
GET
- URI:
/photos
- Query Parameter (์ ํ)
- page (ํ์ด์ง, ์ซ์ | ์ฒซ๋ฒ์งธ ํ์ด์ง=0, ๋๋ฒ์งธ ํ์ด์ง=1, ...) - ์ ํ ์ ํ ์ ์ฒซ๋ฒ์งธ ํ์ด์ง
- Request Body
Headers: Authorization - Success Response
- HTTP Status Code:
200 OK
[ { "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" } ]
- HTTP Status Code: