Skip to content

๐ŸŽธ ๋ฐด๋“œ ๊ฒฐ์„ฑ, ๋ ˆ์Šจ ๋งค์นญ ์•ฑ ์„œ๋น„์Šค '๋ฐด๋“œ์˜ ์‹œ๋Œ€' server

Notifications You must be signed in to change notification settings

EraofBand/eraofband-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

#commit ๊ทœ์น™

  1. type : [ํŒŒ์ผ๋ช…] ์ˆ˜์ •ํ•œ ๋‚ด์šฉ
  2. type
    • add : ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ•  ๋•Œ
    • modify : ๊ธฐ์กด ๊ธฐ๋Šฅ์„ ์ˆ˜์ •ํ•  ๋–„
  3. ex) add : [UserController] ์œ ์ € ๋“ฑ๋ก ๊ธฐ๋Šฅ์ถ”๊ฐ€, modify : [PostProvider] ๊ฒŒ์‹œ๋ฌผ ๊ธฐ๋Šฅ ์ˆ˜์ •

#์ฝ”๋“œ ์ฃผ์„ ๊ทœ์น™ (java ํŒŒ์ผ์— ์‚ฌ์šฉ)

  1. ์ฝ”๋“œ ์œ„์— ์–ด๋–ค ๊ธฐ๋Šฅ์ธ์ง€ ์„ค๋ช… ex) ์œ ์ € ์‚ญ์ œ, ์œ ์ € ์ถ”๊ฐ€
  2. ๊ณตํ†ต์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ณ€์ˆ˜๋ฅผ ์ œ์™ธํ•œ ์• ๋“ค์€ ์„ ์–ธ ์˜†์— // ์ด ์ฃผ์„์„ ์‚ฌ์šฉํ•ด์„œ ์„ค๋ช…ํ•ด์ฃผ๊ธฐ
  3. ๊ฐ ํ•จ์ˆ˜ ์˜†์— ์‹ค์ œ url ๊ฒฝ๋กœ ์‚ฌ์šฉ ์˜ˆ์‹œ ์ฃผ์„์œผ๋กœ ์ถ”๊ฐ€ ex) //https://eraofband.shop/users/2

#๋ฉ”์†Œ๋“œ ๋„ค์ด๋ฐ ๋ฃฐ

HTTP Method + ํ•ต์‹ฌ URI

  • GET /users ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฉ”์†Œ๋“œ๋ช… โ†’ getUsers
  • PATCH /users ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฉ”์†Œ๋“œ๋ช… โ†’patchUsers

#ํด๋ž˜์Šค ๋„ค์ด๋ฐ ๋ฃฐ

HTTP Method + ํ•ต์‹ฌ URI +Res/Req

  • Patch /users/:userId โ†’ PatchUserRes / PatchUserReq ์ด Res, Req ๋ชจ๋ธ์€ (๋„๋ฉ”์ธ๋ช…) / models ํด๋”์— ๋งŒ๋“ค๋ฉด ๋จ

#Provider์™€ Service ๋ฉ”์†Œ๋“œ ๋„ค์ด๋ฐ ๋ฃฐ

  1. C โ†’ createXXX createInfo
  2. R โ†’ readXXX readInfoList
  3. U โ†’ updateXXX updateInfo
  4. D โ†’ deleteXXX deleteInfo

#์นด์นด์˜ค ๋กœ๊ทธ์ธ API ํด๋ผ์ด์–ธํŠธ๋กœ๋ถ€ํ„ฐ access token์„ ๋ฐ›๊ฑฐ๋‚˜, ์ด๋ฉ”์ผ์„ ์ง์ ‘ ๋ฐ›๋Š” ๋ฐฉ์‹ ์‚ฌ์šฉ ์˜ˆ์ •

#API๋Š” ์Šค์›จ๊ฑฐ ์ด์šฉ - ์žผ์˜ ์ถ”์ฒœ

About

๐ŸŽธ ๋ฐด๋“œ ๊ฒฐ์„ฑ, ๋ ˆ์Šจ ๋งค์นญ ์•ฑ ์„œ๋น„์Šค '๋ฐด๋“œ์˜ ์‹œ๋Œ€' server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages