Skip to content

cat10ho/ch3_ItemSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

24 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

์ฝ”๋“œ๋กœ ๋ด์ฃผ์„ธ์š”.

์•„์ดํ…œ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ.

๊ณ„์ •์„ ๋งŒ๋“ค๊ณ  ์บ๋ฆญํ„ฐ๋ฅผ ๋งŒ๋“ค์–ด์„œ ์•„์ดํ…œ ๋งŒ๋“ค์–ด ์ฐฉ์šฉํ•ด ๋ณด๋Š” ์ฝ”๋“œ.

๊ทธ๋ฆฌ๊ณ  ๋กœ๊ทธ์ธ, ํšŒ์›๊ฐ€์ž…๋งŒ. html๋กœ ๋งŒ๋“ค์–ด๋ด„. ์—ฐ๊ฒฐ๋„ ๋จ. api ์•ž์— ip์ ์–ด์•ผํ•จ. ip/api

ํšŒ์›๊ฐ€์ž… post - /api/sign-up body{ "loginId": "", "password":"", "verifyPassword":"", "name":""} ๋กœ๊ทธ์ธ post - /api/sign-in body{ "loginId": "", "password":"" } ๊ณ„์ •์กฐํšŒ get - /api/accounts headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์บ๋ฆญํ„ฐ ์ƒ์„ฑ post - /api/characters body{ "name":"" } headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์บ๋ฆญํ„ฐ ๋ชฉ๋ก ์กฐํšŒ get - /api/characters ์บ๋ฆญํ„ฐ ์ƒ์„ธ ์กฐํšŒ get - /api/characters/characterId
์บ๋ฆญํ„ฐ ์‚ญ์ œ delete - /api/characters/characterId headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ}

์•„์ดํ…œ ์ƒ์„ฑ post - /api/items body{"name":"", "hp":"", "str":"", "price":""} ์•„์ดํ…œ ๋ชฉ๋ก ์กฐํšŒ get - /api/items ์•„์ดํ…œ ์ƒ์„ธ ์กฐํšŒ get - /api/items/itemId ์•„์ดํ…œ ์ˆ˜์ • put - /api/items/itemId body{"name":"", "hp":"", "str":"", "price":""} headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์•„์ดํ…œ ์‚ญ์ œ delete - /api/items/itemId headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์•„์ดํ…œ ๋„ฃ๊ธฐ put -/api/characters/characterId/CharacterInventorys body{"itemId": ""} headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ}

์ธ๋ฒคํ† ๋ฆฌ ์กฐํšŒ get -/api/characters/characterId/CharacterInventorys headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์•„์ดํ…œ ๊ตฌ๋งค put -/api/characters/characterId/purchase body{"itemId": ""} headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์•„์ดํ…œ ํŒ๋งค put -/api/characters/characterId/sale body{"itemId": ""} headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ๋ˆ ๋ณต์‚ฌ put -/api/characters/characterId/money headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ}

์žฅ๋น„์นธ ํ™•์ธ get -/api/characters/characterId/characterItems headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์•„์ดํ…œ ์žฅ์ฐฉ put -/api/characters/characterId/equipped body{"itemId": ""} headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ} ์•„์ดํ…œ ํƒˆ์ฐฉ put -/api/characters/characterId/detachment body{"itemId": ""} headers {Authorization: ํ† ํฐ๋„ฃ๊ธฐ}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors