<aside> ๐Ÿšฉ

Goal: Axios๋ฅผ ์ด์šฉํ•ด์„œ API ์„œ๋ฒ„์™€ ํ†ต์‹ ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ฐฐ์›๋‹ˆ๋‹ค.

</aside>

1. Axios

2. json-server ์„ค์ •

<aside> ๐Ÿ“Œ API ์„œ๋ฒ„๋Š” ์šฐ๋ฆฌ๊ฐ€ ๋งŒ๋“  json-server๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๋ฐฐํฌ๋Š” ํ•˜์ง€ ์•Š์•„๋„ ๋˜๊ณ , ํ•œ ํ”„๋กœ์ ํŠธ ๋‚ด์—์„œ 3001 ํฌํŠธ๋กœ ์„œ๋ฒ„๋ฅผ ๊ฐ€๋™์‹œ์ผœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

</aside>

3. GET

4. POST

5. DELETE