Home - SangleProject/Sangle GitHub Wiki
๐๐ ์ถ๊ฐ๋ถ๋ถ ๐๐
๐๐ ์์ ๋ถ๋ถ ๐๐
- user์ ๋ณด์์ ํ์ค์๊ฐ(info)๊ฐ ""์ด๋ฉด ์์ง ์ ์ ๊ฐ ํ์ค์๊ฐ๋ฅผ ์์ฑํ์ง ์์ ๊ฒ
- ์ผ๋ฐํ์๊ฐ์ == ์์ ๋ก๊ทธ์ธ + ์ถ๊ฐ ์ ๋ณด ์ ๋ ฅ
- ๋ฆฌํ๋ ์ ํ ํฐ ์ฒ๋ฆฌ
๐ฑ๋ก๊ทธ์ธ๐ฑ
Method | Route | Info |
---|---|---|
POST | /users/login/login-by-apple | ์ ํ ๋ก๊ทธ์ธ ๊ฒ์ฆ |
POST | /login/refresh | ์ ํ ๋ฆฌํ๋ ์ |
POST | /users/google | ๊ตฌ๊ธ ๋ก๊ทธ์ธ ๊ฒ์ฆ |
PUT | /users/social | ์ถ๊ฐ ์ ๋ณด ์ ๋ ฅ |
PUT | /users/updateToken | device_token ์ ๋ฐ์ดํธ |
POST | /users/signup | ์ผ๋ฐ ํ์๊ฐ์ |
POST | /users/signin | ์ผ๋ฐ ๋ก๊ทธ์ธ |
POST | /users/checkEmail | ์ด๋ฉ์ผ ์ค๋ณต์ฒดํฌ |
POST | /users/checkNickName | ๋๋ค์ ์ค๋ณต์ฒดํฌ |
GET | /users/refresh | ํ ํฐ ๋ง๋ฃ |
๐์ ์ ๐
Method | Route | Info |
---|---|---|
GET | /users/profile | ํ๋กํ ์์ ํ๊ธฐ ์ ์ ๋ณด, My์๋์์ ๋ด ์ ๋ณด |
PUT | /users/update | ํ๋กํ ์์ |
DELETE | /users/delete | ํ์ํํด |
GET | /badgeList | ๋ฐฐ์ง ๋ฆฌ์คํธ๋ทฐ |
POST | /users/addBlocking/{blockUserIdx} | ์ ์ ์ฐจ๋จ |
DELETE | /users/deleteBlocking/{blockUserIdx} | ์ ์ ์ฐจ๋จ ํด์ |
GET | /users/blockList | ์ ์ ์ฐจ๋จ ๋ชฉ๋ก |
๐๋ฉ์ธ๐
Method | Route | Info |
---|---|---|
GET | /main/searchUser?user=#{user} | ์ ์ ๊ฒ์ |
GET | /main/searchPost?post=#{post} | ๊ธ ๋ด์ฉ ๊ฒ์ |
GET | /main/searchTopic?topic=#{topic} | ๊ธ๊ฐ ๊ฒ์ |
GET | /main/info | ๋ฉ์ธ ์ ์ ์ ๋ณด |
GET | /cal/day | ๋ฌ๋ณ ๋งค์ผ ๊ธ์์ฑ ํํฉ |
GET | /cal/week | ์ฃผ๋ณ ๋ฌ์ฑ๋ฅ |
GET | /main/diffProfile/{nickName} | ๋ค๋ฅธ ์ ์ ํ๋กํ |
GET | /main/diffFeed/{nickName}(?filter="popular") | ๋ค๋ฅธ ์ ์ ํผ๋ (์ต์ ์ or ์ธ๊ธฐ์) |
GET | /main/allNotice | ๊ณต์ง์ฌํญ ๋ฆฌ์คํธ |
GET | /main/notice | ์๋ฆผ๋ทฐ |
โ๏ธMy ์๋โ๏ธ
Method | Route | Info |
---|---|---|
GET | /main/searchMyTopic?topic=#{topic} | My ์๋ ๋ด ๊ธ๊ฐ ๊ฒ์ |
GET | /main/searchScrapTopic?topic=#{topic} | My ์๋ ๋ด์ ๊ธ๊ฐ ๊ฒ์ |
GET | /posts/myPost(?filter="popular") | ๋ด๊ฐ ์์ฑํ ๊ธ ๋ชฉ๋ก(์ต์ ์ or ์ธ๊ธฐ์) |
GET | /posts/likes(?filter="popular") | ๋ด๊ฐ ์ข์์ ํ ๊ธ ๋ชฉ๋ก(์ต์ ์ or ์ธ๊ธฐ์) |
GET | /posts/scrap(?filter="popular") | ๋ด๊ฐ ๋ด์ ๊ธ ๋ชฉ๋ก(์ต์ ์ or ์ธ๊ธฐ์) |
๐๊ฒ์๊ธ๐
Method | Route | Info |
---|---|---|
GET | /posts/popularity | ๋ช ์์ ์ ๋น |
GET | /posts/all?topic="#{topic}"(&filter="popular") | ๊ธ๊ฐ๋ณ ์ ์ฒด๊ณต๊ฐ๋ ๋ชจ๋ ๊ธ ๋ชฉ๋ก(์ต์ ์ or ์ธ๊ธฐ์) |
POST | /posts/write | ๊ธ ์์ฑ |
PUT | /posts/update/{postIdx} | ๊ธ ์์ |
PUT | /posts/open/{postIdx} | ๊ธ ๊ณต๊ฐ์ฌ๋ถ |
DELETE | /posts/delete/{postIdx} | ๊ธ ์ญ์ |
POST | /posts/likes/{postIdx} | ์ข์์ |
DELETE | /posts/unlikes/{postIdx} | ์ข์์ ์ทจ์ |
POST | /posts/scrap/{postIdx} | ์คํฌ๋ฉ |
DELETE | /posts/unscrap/{postIdx} | ์คํฌ๋ฉ ์ทจ์ |
GET | /posts/detail/{postIdx} | ๋ด๊ฐ ์ด ๊ฒ์๊ธ ์์ธํ ๋ณด๊ธฐ |
GET | /posts/detailDiff/{postIdx} | ๋ค๋ฅธ ์ ์ ๊ฐ ์ด ๊ฒ์๊ธ ์์ธํ ๋ณด๊ธฐ |
โก๊ธ๊ฐโก
Method | Route | Info |
---|---|---|
GET | /topic/today | ์ค๋์ ๋๋ค ๊ธ๊ฐ ๊ฐ์ ธ์ค๊ธฐ |
GET | /topic/lastTopic(?used=true)(?used=false) | ์ง๋ ๊ธ๊ฐ๋ค(์ต๊ทผ 10์ผ) |
GET | /topic/lastAllTopic | ์ง๋ ๊ธ๊ฐ๋ค ์ ์ฒด๋ณด๊ธฐ |
POST | /topic/written | ๋ด๊ฐ ์ด ๊ธ๊ฐ์ธ์ง ํ์ธ(๋ธ๋ผ์ธ๋ ์ฒ๋ฆฌ์ฉ) |