weather-share-community
๊ธฐ์จ์ด ๊ฐ์๋ ๋ฐ๋, ํ๋น, ์ต๋ ๋ฑ์ ๋ฐ๋ผ ์ฒด๊ฐ ์จ๋๊ฐ ๋ฌ๋ผ์ง๊ธฐ ๋๋ฌธ์ ์ด๋ค ์ท์ ์ ์ด์ผ ํ ์ง ๊ณ ๋ฏผ์ด ๋ ๋๊ฐ ๋ง๋ค. ๋งคํด ์ฌ๊ณ์ ์ ๊ฒช์ง๋ง ์ ๋ ๋ด๊ฐ ์๊ฒ ์ ๊ณ ๋๊ฐ ๋ ์ ์ถฅ๊ณ , ๋๊ป๊ฒ ์ ๊ณ ๋๊ฐ ๋ ์ ๋์ ์ค๋ ๋ ์จ๊ฐ ์ด๋ค์ง ์ฃผ์์ ๋ฌผ์ด๋ณด๊ธฐ๋ ํ๋ค. ๊ณ ๋ฏผํ ์๊ฐ์ ์ค์ด๊ธฐ ์ํด, ์ ์ ์ท์ ๋ ์จ์ ํจ๊ป ๊ธฐ๋กํ๊ณ ๋ค๋ฅธ ์ฌ๋๋ค์ ์ด๋ป๊ฒ ์ ์๋์ง ์ ์ ์๋ ํ๋ก์ ํธ๋ฅผ ๊ธฐํํ๋ค.
- Java 11
- Spring Boot 2.17
- MySQL & JPA
- AWS & RDS & S3
method | Get |
url | /test/user/all |
{
"statusCode": 200,
"responseMessage": "์ ์ฒด ๋ฉค๋ฒ ์กฐํ",
"data": "db์ ๋ค์ด์๋ ํ์ ์ ์ฒด ์ ๋ณด"
}
method | Post |
url | /check/token |
Header | X-AUTH-TOKEN |
์ฐธ๊ณ | ์ ํจํ ํ ํฐ์ด๋ฉด true ์๋๋ฉด false, ๋ถ๊ท์นํ๊ฒ ์๋ฒ 500 ์๋ฌ๋ฅผ ๋ฐํํ๊ธฐ๋ ํจ, ํ์ง๋ง ํ ํฐ ๊ฐ์ด ์ ํจํ ๊ฒฝ์ฐ์๋ ๋ฌด์กฐ๊ฑด true ๋ฐํ |
{
true or false
}
method | Post |
url | /user/join |
Body | {"nickName" : "bbbb", "userEmail":"[email protected]", "pwd" : "bbbb"} |
{
"statusCode": 200,
"responseMessage": "ํ์๊ฐ์
์ฑ๊ณต",
"data": null
}
method | Post |
url | /user/login |
Body | {"userEmail" : "bbbb","pwd" : "bbbb"} |
{
"statusCode": 200,
"responseMessage": "๋ก๊ทธ์ธ ์ฑ๊ณต",
"data": "token๊ฐ"
}
method | Post |
url | /check/nick_name |
Body | {"nickName" : "bbbb"} |
์ฐธ๊ณ | ์ค๋ณต๋ ๋๋ค์์ด๋ฉด true, ์๋ ๋๋ค์์ด๋ฉด false |
{
true or false
}
method | Post |
url | /check/user_email |
Body | {"userEmail" : "[email protected]"} |
์ฐธ๊ณ | ์ค๋ณต๋ ์ด๋ฉ์ผ์ด๋ฉด true, ์๋ ์ด๋ฉ์ผ์ด๋ฉด false |
{
true or false
}
method | Get |
url | /user/mypage |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "๋ง์ดํ์ด์ง",
"data": {
"id": 10,
"userName": "eeee",
"userEmail": "[email protected]",
"profileUrl": "์ด๋ฏธ์ง url"
}
}
method | Post |
url | /user/mypage/edit/profile |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "๋ง์ดํ์ด์ง ์์ ์ฑ๊ณต",
"data": null
}
method | Get |
url | /user/likes |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "์ข์์ ๋ฆฌ์คํธ",
"data": [
{
"id": 9,
"img": "๊ฐ์ฅ ๋งจ ์ฒ์ ์ด๋ฏธ์ง url",
"memberName": "a",
"boardId": 36
},
{
"id": 10,
"img": "๊ฐ์ฅ ๋งจ ์ฒ์ ์ด๋ฏธ์ง url",
"memberName": "eeee",
"boardId": 34
}
]
}
method | Get |
url | /user/scrape/list |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "์คํฌ๋ฉ ๋ฆฌ์คํธ",
"data": [
{
"id": 2,
"img": "๊ฐ์ฅ ๋งจ ์ฒ์ ์ด๋ฏธ์ง url",
"memberName": "eeee",
"boardId": 25
},
{
"id": 10,
"img": "๊ฐ์ฅ ๋งจ ์ฒ์ ์ด๋ฏธ์ง url",
"memberName": "eeee",
"boardId": 26
}
]
}
method | Post |
url | /board/save |
Header | X-AUTH-TOKEN |
Body | {"requestDto":{ "content": "ํ๋์ํ ํ ์คํธ", "privacy": true, "status" : "HOT", "skyCode":"ํ๋ฆผ","presentTemperature":"30","highestTemperature":"32","lowestTemperature":"24"},"clothes" : {"top" : "ํ๋", "bottom":"ํธ๋ ์ด๋ ๋ฐ์ง", "outerClothing":"์์ผ","shoes" : "์ด๋ํ", "accessory1":"๋ชจ์", "accessory2":"์ ๊ธ๋ผ์ค"} |
image | null ๋ถ๊ฐ๋ฅ, 3๊ฐ๊น์ง |
์ฐธ๊ณ | status๋ HOT, WARM, BEST, COLD, COOL ์ค ํ๋๋ก ๋ณด๋ด์ผํจ |
{
"statusCode": 200,
"responseMessage": "๊ธ ์ฌ๋ฆฌ๊ธฐ ์ฑ๊ณต",
"data": null
}
method | Get |
url | /board/{boardId} |
{
"statusCode": 200,
"responseMessage": "๊ธ ์ฑ๊ณต",
"data": {
"id": 130,
"content": "์ท ํ
์คํธ",
"privacy": false,
"createDate": "2022-07-10T13:23:16.2606948",
"status": null,
"skyCode": "ํ๋ฆผ",
"presentTemperature": "25",
"highestTemperature": "31",
"lowestTemperature": "22",
"codyDate": "2022-07-10",
"clothes": null,
"images": [
"์ด๋ฏธ์ง url"
],
"memberResponseDto": {
"id": 1,
"nickName": "kim2",
"userEmail": "[email protected]",
"profileUrl": "ํ๋กํ url"
},
"clothesResponseDto": {
"top": "๋ฏผ์๋งค",
"bottom": "์ฌ๋์ค",
"outerClothing": "๊ฐ๋๊ฑด",
"shoes": "๋จํ",
"accessory1": "",
"accessory2": ""
}
}
}
method | Get |
url | /boards |
{
"statusCode": 200,
"responseMessage": "๊ธ ์ฑ๊ณต",
"data": [
{
"id": "58",
"content": "test3",
"privacy": false,
"createDate": "2022-05-01T13:49:36.6563063",
"status": "HOT",
"memberName": "a",
"profileUrl": "profile url",
"imgUrl": "๊ธ์ ์ฒซ๋ฒ์งธ ์ด๋ฏธ์ง url"
},
{
"id": "61",
"content": "test4",
"privacy": false,
"createDate": "2022-05-01T13:49:36.6602927",
"status": "HOT",
"memberName": "eeee",
"profileUrl": "profile url",
"imgUrl": "๊ธ์ ์ฒซ๋ฒ์งธ ์ด๋ฏธ์ง url"
}
]
}
method | Delete |
url | /board/{boardId}/delete |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "์ฑ๊ณต"
"data": null
}
method | Get |
url | /board/recommend |
Header | X-AUTH-TOKEN |
Param | currentWeather |
currentWeather: int, ํ์ฌ ๋ ์จ | |
์ฐธ๊ณ | ํ์ฌ๋ ์จ +-2๋์ ๊ฒ์๋ฌผ ์ถ์ฒ |
{
"statusCode": 200,
"responseMessage": "์ถ์ฒ ๊ฒ์๊ธ",
"data": [
{
"id": 1,
"content": "test content1",
"privacy": false,
"createDate": "2022-09-17T21:38:17.3758659",
"status": null,
"memberName": "park",
"profileUrl": "",
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c982460c-ac61-468d-8f9a-d61a326b0c60.PNG"
},
{
"id": 4,
"content": "test content2",
"privacy": false,
"createDate": "2022-09-17T21:38:17.3998028",
"status": null,
"memberName": "park",
"profileUrl": "",
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/adf4788f-4784-40ac-9848-33914b3f4d36.PNG"
},
{
"id": 7,
"content": "test content3",
"privacy": false,
"createDate": "2022-09-17T21:38:17.4017974",
"status": null,
"memberName": "park",
"profileUrl": "",
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c078980c-1434-4cec-b47d-59ef145b0b80.PNG"
},
{
"id": 10,
"content": "test content4",
"privacy": false,
"createDate": "2022-09-17T21:38:17.408779",
"status": null,
"memberName": "kim2",
"profileUrl": "",
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c5a16e1a-5c37-4e16-810f-fb21d0ab0fbe.PNG"
}
]
}
method | Get |
url | /board/recommend/{skyCode} |
Header | X-AUTH-TOKEN |
Param | currentWeather |
url(ex) | /board/recommend/Sunny?currentWeather=30 |
currentWeather: int, ํ์ฌ ๋ ์จ | |
์ฐธ๊ณ | ํ์ฌ๋ ์จ +-2 ์ถ์ฒํผ๋ + ํ๋์ํ (Sunny - ๋ง์, Blur - ํ๋ฆผ, Cloudy - ๊ตฌ๋ฆ๋ง์, Rain -๋น, Snow - ๋), ๊ฐ๊ฐ์ ํ๋์ํ์ ๋ง๋ ํผ๋ ๋ ธ์ถ |
{
"statusCode": 200,
"responseMessage": "์ถ์ฒ ๊ฒ์๊ธ",
"data": [
{
"id": 1,
"content": "ํ๋์ํ ํ
์คํธ",
"privacy": false,
"createDate": "2023-01-14T04:56:58.808928",
"status": null,
"memberName": "kim2",
"profileUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/user/b97afd9c-e829-4a96-aed9-68b8c93f6111.png",
"imgUrl": "",
"skyCode": "Blur"
}
]
}
method | Post |
url | /board/{boardId}/likes |
Header | X-AUTH-TOKEN |
์ฐธ๊ณ | ์ด๋ฏธ ์๋ boardId์ธ ๊ฒฝ์ฐ ์ข์์ ์ทจ์๋ก ๋์ |
{
"statusCode": 200,
"responseMessage": "์ข์์ ์ฑ๊ณต" or "์ข์์ ์ทจ์"
"data": null
}
method | Post |
url | /board/{boardId}/scrape |
Header | X-AUTH-TOKEN |
์ฐธ๊ณ | ์ด๋ฏธ ์๋ boardId์ธ ๊ฒฝ์ฐ ์คํฌ๋ฉ ์ทจ์๋ก ๋์ |
{
"statusCode": 200,
"responseMessage": "์คํฌ๋ฉ ์ฑ๊ณต" or "์คํฌ๋ฉ ์ทจ์"
"data": null
}
method | Post |
url | /board/{boardId}/reply |
Header | X-AUTH-TOKEN |
Body | {"content" : "hi"} |
{
"statusCode": 200,
"responseMessage": "๋๊ธ๋ฌ๊ธฐ"
"data": null
}
method | Post |
url | /board/{boardId}/reply/{replyId} |
Header | X-AUTH-TOKEN |
Body | {"content" : "hi"} |
{
"statusCode": 200,
"responseMessage": "๋ต๊ธ๋ฌ๊ธฐ"
"data": null
}
method | Get |
url | /board/{boardId}/replies |
{
"statusCode": 200,
"responseMessage": "๋๊ธ ๋ชฉ๋ก",
"data": [
{
"id": 1,
"content": "hi",
"memberName": "eeee",
"profileUrl": "profile img url"
},
{
"id": 2,
"content": "hi2",
"memberName": "eeee",
"profileUrl": "profile img url"
},
{
"id": 3,
"content": "a_reply",
"memberName": "a",
"profileUrl": "profile img url"
}
]
}
method | Get |
url | /reply/{replyId} |
{
"statusCode": 200,
"responseMessage": "๋ต๊ธ ๋ชฉ๋ก",
"data": [
{
"id": 1,
"content": "reply test",
"memberName": "kim3",
"profileUrl": ""
},
{
"id": 2,
"content": "reply test2",
"memberName": "kim3",
"profileUrl": ""
}
]
}
method | Post |
url | /board/reply/{replyId} |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "๋๊ธ์ญ์ "
"data": null
}
method | Post |
url | /report/board |
Header | X-AUTH-TOKEN |
์ฐธ๊ณ | 10๋ฒ ์ด์ ์ ๊ณ ๋๋ฉด ๊ธ ์ญ์ |
{
"statusCode": 200,
"responseMessage": "๊ฒ์๋ฌผ ์ ๊ณ "
"data": null
}
method | Post |
url | /comment/board |
Header | X-AUTH-TOKEN |
์ฐธ๊ณ | 10๋ฒ ์ด์ ์ ๊ณ ๋๋ฉด ๋๊ธ ์ญ์ |
{
"statusCode": 200,
"responseMessage": "๋๊ธ ์ ๊ณ "
"data": null
}
method | Post |
url | /block/create |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "์ฐจ๋จ"
"data": null
}
method | Post |
url | /follow/{toMemberId} |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "ํ๋ก์ฐ ์ฑ๊ณต"
"data": null
}
method | Delete |
url | /follow/{toMemberId} |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "์ธํ๋ก์ฐ ์ฑ๊ณต"
"data": null
}
method | Get |
url | /follow/getFollower/{toMemberId} |
์ฐธ๊ณ | ๋ก๊ทธ์ธ ์ฌ๋ถ ์๊ด ์์ด ์ด๋ค ์ ์ ๊ฐ ํ๋ก์ฐํ๋ ๋ฆฌ์คํธ๋ฅผ ํ์ธ ํ ์ ์์, toMemberId๋ ํ๋ก์ฐ ๋ฆฌ์คํธ๋ฅผ ํ์ธํ๊ณ ์ถ์ ์ ์ , ๋ก๊ทธ์ธ ์์ด ํ์ธ ๊ฐ๋ฅ |
{
"statusCode": 200,
"responseMessage": "ํ๋ก์ฐ ๋ฆฌ์คํธ",
"data": [
{
"fromMemberId": 3,
"toMemberId": 4
},
{
"fromMemberId": 3,
"toMemberId": 5
}
]
}
method | Delete |
url | /follow/getFollowing |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "ํ๋ก์ ๋ฆฌ์คํธ",
"data": [
{
"fromMemberId": 5,
"toMemberId": 3
}
]
}
method | Get |
url | /follow/getFollowingCount |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "ํ๋ก์ ์",
"data": 1
}
method | Get |
url | /boards/main |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "ํ๋ก์ ",
"data": [
{
"id": 1,
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c982460c-ac61-468d-8f9a-d61a326b0c60.PNG"
},
{
"id": 4,
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/adf4788f-4784-40ac-9848-33914b3f4d36.PNG"
},
{
"id": 7,
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c078980c-1434-4cec-b47d-59ef145b0b80.PNG"
}
]
}
method | Get |
url | /board/search |
Header | X-AUTH-TOKEN |
Param | keyword |
keyword: string, ๊ฒ์ ํค์๋ |
{
"statusCode": 200,
"responseMessage": "๊ฒ์",
"data": [
{
"id": 1,
"content": "test content1",
"privacy": false,
"createDate": "2022-07-11T17:09:09.4803631",
"status": null,
"memberName": "park",
"profileUrl": "",
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c982460c-ac61-468d-8f9a-d61a326b0c60.PNG"
}
]
}
method | Get |
url | /board/searchImg |
Header | X-AUTH-TOKEN |
Param | keyword |
keyword: string, ๊ฒ์ ํค์๋ | |
์ฐธ๊ณ | ํค์๋ ๊ฒ์์ ์ ๋ก๋ํ ๊ฒ์๋ฌผ id์ ์์ฑ์ ํ๋กํ ์ฌ์ง๋ง ๊ฐ์ ธ์ด |
{
"statusCode": 200,
"responseMessage": "๊ฒ์",
"data": [
{
"id": 1,
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c982460c-ac61-468d-8f9a-d61a326b0c60.PNG"
}
]
}
method | Get |
url | /user/memberFeed |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "๊ฐ์ธ ํผ๋",
"data": [
{
"id": 10,
"content": "test content4",
"privacy": false,
"createDate": "2022-07-11T17:14:58.747141",
"status": null,
"memberName": "kim2",
"profileUrl": "",
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c5a16e1a-5c37-4e16-810f-fb21d0ab0fbe.PNG"
}
]
}
method | Get |
url | /user/memberFeedImg |
Header | X-AUTH-TOKEN |
์ฐธ๊ณ | ๊ฒ์๋ฌผ์ id์ ํ๋กํ ์ฌ์ง๋ง ๊ฐ์ ธ์ด |
{
"statusCode": 200,
"responseMessage": "๊ฐ์ธ ํผ๋",
"data": [
{
"id": 10,
"imgUrl": "https://weatherawsbucket.s3.ap-northeast-2.amazonaws.com/c5a16e1a-5c37-4e16-810f-fb21d0ab0fbe.PNG"
}
]
}
method | Get |
url | /user/memberFeedCount |
Header | X-AUTH-TOKEN |
{
"statusCode": 200,
"responseMessage": "๊ฒ์๊ธ ๊ฐ์",
"data": 1
}